CVE-2025-40049 Details
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.
A vulnerability has been identified in the Linux kernel's Squashfs file system component, specifically related to how parent inodes are managed. The issue arises when a file handle is processed that contains an invalid parent inode number, particularly one corresponding to a symbolic link instead of a directory. This leads to an access of an uninitialized value, as non-directory inodes do not have a defined parent value. The vulnerability was reported by Syzkaller, which detected the uninitialized value access during a kernel memory sanitizer (KMSAN) check. The problem has been addressed by modifying the inode handling to properly initialize the parent field, thereby preventing the access of uninitialized data and the associated risks.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1b3ccd0019132880c94bb00ca7088c1749308f82 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/382a47fae449e554ef1e8c198667fd2f3270b945 | kernel.org | |
| https://git.kernel.org/stable/c/61d38b5ce2782bff3cacaacbb8164087a73ed1a5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/81a2bca52d43fc9d9abf07408b91255131c5dc53 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/91b99db7a92e57ff48a96a1b10fddfd2547e7f53 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/c28b0ca029edf5d0558abcd76cb8c732706cd339 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/f81a5bc9e924ee1950e0dd82bd10749048390f6e | kernel.org |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| Linux Squashfs | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 29, 2025 | CVE Modified | kernel.org |
| Oct 28, 2025 | New CVE Received | kernel.org |
Volerion