CVE-2025-40049
Last modified
CVE-2025-40049 is a vulnerability of currently unknown severity. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 122601408d20c77704268f1dea9f9ce4abf997c2, < f81a5bc9e924ee1950e0dd82bd10749048390f6e; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 382a47fae449e554ef1e8c198667fd2f3270b945; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 61d38b5ce2782bff3cacaacbb8164087a73ed1a5; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 81a2bca52d43fc9d9abf07408b91255131c5dc53; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < c28b0ca029edf5d0558abcd76cb8c732706cd339; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 1b3ccd0019132880c94bb00ca7088c1749308f82; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 91b99db7a92e57ff48a96a1b10fddfd2547e7f53; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf |
| Linux | Linux | 2.6.29 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40049?
How severe is CVE-2025-40049?
How do I fix CVE-2025-40049?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40043In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40044In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40045In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40046In the Linux kernel, the following vulnerability has been re…8.6
- CVE-2025-40047In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40048In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-4005A vulnerability was found in PHPGurukul COVID19 Testing Mana…9.8
- CVE-2025-40050In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40051In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40052In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40053In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40054In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-40049?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
