# CVE-2025-40049: Squashfs: fix uninit-value in squashfs\_get\_parent

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-28T11:48:25.862Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< f81a5bc9e924ee1950e0dd82bd10749048390f6e; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 382a47fae449e554ef1e8c198667fd2f3270b945; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 61d38b5ce2782bff3cacaacbb8164087a73ed1a5; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 81a2bca52d43fc9d9abf07408b91255131c5dc53; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< c28b0ca029edf5d0558abcd76cb8c732706cd339; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 1b3ccd0019132880c94bb00ca7088c1749308f82; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 91b99db7a92e57ff48a96a1b10fddfd2547e7f53; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf
- Anyone running Linux 2.6.29

## 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.

## Affected and fixed versions

- Linux: \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< f81a5bc9e924ee1950e0dd82bd10749048390f6e; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 382a47fae449e554ef1e8c198667fd2f3270b945; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 61d38b5ce2782bff3cacaacbb8164087a73ed1a5; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 81a2bca52d43fc9d9abf07408b91255131c5dc53; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< c28b0ca029edf5d0558abcd76cb8c732706cd339; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 1b3ccd0019132880c94bb00ca7088c1749308f82; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 91b99db7a92e57ff48a96a1b10fddfd2547e7f53; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- Upgrade Linux to 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40049. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40049.md
Affected: Linux >= 122601408d20c77704268f1dea9f9ce4abf997c2, < f81a5bc9e924ee1950e0dd82bd10749048390f6e; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 382a47fae449e554ef1e8c198667fd2f3270b945; >= 122601408d20c77704268f1dea9f9ce4abf997c2, < 61d38b5ce2782bff3cacaacbb8164087a73ed1a5; >= 122601408d20c77704268f1…
Fixed in: Linux 382a47fae449e554ef1e8c198667fd2f3270b945, Linux 61d38b5ce2782bff3cacaacbb8164087a73ed1a5, Linux 81a2bca52d43fc9d9abf07408b91255131c5dc53, Linux 1b3ccd0019132880c94bb00ca7088c1749308f82, Linux 91b99db7a92e57ff48a96a1b10fddfd2547e7f53, Linux 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40049 being exploited?

There is no confirmed exploitation: CVE-2025-40049 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40049?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40049?

Linux \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< f81a5bc9e924ee1950e0dd82bd10749048390f6e; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 382a47fae449e554ef1e8c198667fd2f3270b945; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 61d38b5ce2782bff3cacaacbb8164087a73ed1a5; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 81a2bca52d43fc9d9abf07408b91255131c5dc53; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< c28b0ca029edf5d0558abcd76cb8c732706cd339; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 1b3ccd0019132880c94bb00ca7088c1749308f82; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 91b99db7a92e57ff48a96a1b10fddfd2547e7f53; \>= 122601408d20c77704268f1dea9f9ce4abf997c2, \< 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf; Linux 2.6.29.

### Is there a fix for CVE-2025-40049?

Yes. Fixed in Linux 382a47fae449e554ef1e8c198667fd2f3270b945, Linux 61d38b5ce2782bff3cacaacbb8164087a73ed1a5, Linux 81a2bca52d43fc9d9abf07408b91255131c5dc53, Linux 1b3ccd0019132880c94bb00ca7088c1749308f82, Linux 91b99db7a92e57ff48a96a1b10fddfd2547e7f53, Linux 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf. Upgrade Linux to 74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf or later.

### How do I check if I'm affected by CVE-2025-40049?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f81a5bc9e924ee1950e0dd82bd10749048390f6e>
- other: <https://git.kernel.org/stable/c/382a47fae449e554ef1e8c198667fd2f3270b945>
- other: <https://git.kernel.org/stable/c/61d38b5ce2782bff3cacaacbb8164087a73ed1a5>
- other: <https://git.kernel.org/stable/c/81a2bca52d43fc9d9abf07408b91255131c5dc53>
- other: <https://git.kernel.org/stable/c/c28b0ca029edf5d0558abcd76cb8c732706cd339>
- other: <https://git.kernel.org/stable/c/1b3ccd0019132880c94bb00ca7088c1749308f82>
- other: <https://git.kernel.org/stable/c/91b99db7a92e57ff48a96a1b10fddfd2547e7f53>
- other: <https://git.kernel.org/stable/c/74058c0a9fc8b2b4d5f4a0ef7ee2cfa66a9e49cf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40049>

HTML: <https://flawdb.com/CVE-2025-40049> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40049>
