CVE-2025-40049

Linux Kernel - Uninitialized Value Access in squashfs_get_parent

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: Squashfs: fix uninit-value in squashfs_get_parent Syzkaller reports a "KMSAN: uninit-value in squashfs_get_parent" bug. This is caused by open_by_handle_at() being called with a file handle containing an invalid parent inode number. In particular the inode number is that of a symbolic link, rather than a directory. Squashfs_get_parent() gets called with that symbolic link inode, and accesses the parent member field. unsigned int parent_ino = squashfs_i(inode)->parent; Because non-directory inodes in Squashfs do not have a parent value, this is uninitialised, and this causes an uninitialised value access. The fix is to initialise parent with the invalid inode 0, which will cause an EINVAL error to be returned. Regular inodes used to share the parent field with the block_list_start field. This is removed in this commit to enable the parent field to contain the invalid inode number 0.

Scores

EPSS 0.0021
EPSS Percentile 10.8%

Details

Status published
Products (25)
linux/Kernel 2.6.29 - 5.4.301linux
linux/Kernel 5.11.0 - 5.15.195linux
linux/Kernel 5.16.0 - 6.1.156linux
linux/Kernel 5.5.0 - 5.10.246linux
linux/Kernel 6.13.0 - 6.17.3linux
linux/Kernel 6.2.0 - 6.6.112linux
linux/Kernel 6.7.0 - 6.12.53linux
Linux/Linux < 2.6.29
Linux/Linux 122601408d20c77704268f1dea9f9ce4abf997c2 - 1b3ccd0019132880c94bb00ca7088c1749308f82
Linux/Linux 122601408d20c77704268f1dea9f9ce4abf997c2 - 382a47fae449e554ef1e8c198667fd2f3270b945
... and 15 more
Published Oct 28, 2025
Tracked Since Feb 18, 2026