CVE-2025-40200
Squashfs: reject negative file sizes in squashfs_read_inode()
Mitigation
- Upgrade Linux to 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b or later.
Who should check
- Anyone running Linux >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 54170057a5fadd24a37b70de41e61d39284d9bd7; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 2871c74caa3f4f05b429e6bfefebac62dbf1b408; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < fbfc745db628de31f5c089147deeb87e95b89e66; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8118f66124895829443d09c207e654adcb2f9321; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8c7aad76751816207fee556d44aa88a710824810; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 875fb3f87ae0225b881319ba016a1a8c4ffd5812; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < f271155ff31aca8ef82c61c8df23ca97e9a77dd4; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b
- Anyone running Linux 2.6.29
Vulnerability facts
- Affected
- Linux >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 54170057a5fadd24a37b70de41e61d39284d9bd7; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 2871c74caa3f4f05b429e6bfefebac62dbf1b408; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < fbfc745db628de31f5c089147deeb87e95b89e66; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8118f66124895829443d09c207e654adcb2f9321; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8c7aad76751816207fee556d44aa88a710824810; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 875fb3f87ae0225b881319ba016a1a8c4ffd5812; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < f271155ff31aca8ef82c61c8df23ca97e9a77dd4; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b; Linux 2.6.29
- Fixed in
- Linux 54170057a5fadd24a37b70de41e61d39284d9bd7, Linux 2871c74caa3f4f05b429e6bfefebac62dbf1b408, Linux 8118f66124895829443d09c207e654adcb2f9321, Linux 8c7aad76751816207fee556d44aa88a710824810, Linux 875fb3f87ae0225b881319ba016a1a8c4ffd5812, Linux 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: Squashfs: reject negative file sizes in squashfs_read_inode() Syskaller reports a "WARNING in ovl_copy_up_file" in overlayfs. This warning is ultimately caused because the underlying Squashfs file system returns a file with a negative file size. This commit checks for a negative file size and returns EINVAL. [phillip@squashfs.org.uk: only need to check 64 bit quantity]
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 54170057a5fadd24a37b70de41e61d39284d9bd7; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 2871c74caa3f4f05b429e6bfefebac62dbf1b408; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < fbfc745db628de31f5c089147deeb87e95b89e66; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8118f66124895829443d09c207e654adcb2f9321; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8c7aad76751816207fee556d44aa88a710824810; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 875fb3f87ae0225b881319ba016a1a8c4ffd5812; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < f271155ff31aca8ef82c61c8df23ca97e9a77dd4; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b | — | cvelist |
| Linux | 2.6.29 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40200. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40200.md Affected: Linux >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 54170057a5fadd24a37b70de41e61d39284d9bd7; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 2871c74caa3f4f05b429e6bfefebac62dbf1b408; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < fbfc745db628de31f5c089147deeb87e95b89e66; >= 6545b246a2c815a8fcd07d5… Fixed in: Linux 54170057a5fadd24a37b70de41e61d39284d9bd7, Linux 2871c74caa3f4f05b429e6bfefebac62dbf1b408, Linux 8118f66124895829443d09c207e654adcb2f9321, Linux 8c7aad76751816207fee556d44aa88a710824810, Linux 875fb3f87ae0225b881319ba016a1a8c4ffd5812, Linux 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b 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.
References
Other
- https://git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7
- https://git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408
- https://git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66
- https://git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321
- https://git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810
- https://git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812
- https://git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4
- https://git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b
FAQ
Is CVE-2025-40200 being exploited?
There is no confirmed exploitation: CVE-2025-40200 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-40200?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-40200?
Linux >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 54170057a5fadd24a37b70de41e61d39284d9bd7; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 2871c74caa3f4f05b429e6bfefebac62dbf1b408; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < fbfc745db628de31f5c089147deeb87e95b89e66; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8118f66124895829443d09c207e654adcb2f9321; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 8c7aad76751816207fee556d44aa88a710824810; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 875fb3f87ae0225b881319ba016a1a8c4ffd5812; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < f271155ff31aca8ef82c61c8df23ca97e9a77dd4; >= 6545b246a2c815a8fcd07d58240effb6ec3481b1, < 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b; Linux 2.6.29.
Is there a fix for CVE-2025-40200?
Yes. Fixed in Linux 54170057a5fadd24a37b70de41e61d39284d9bd7, Linux 2871c74caa3f4f05b429e6bfefebac62dbf1b408, Linux 8118f66124895829443d09c207e654adcb2f9321, Linux 8c7aad76751816207fee556d44aa88a710824810, Linux 875fb3f87ae0225b881319ba016a1a8c4ffd5812, Linux 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b. Upgrade Linux to 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b or later.
How do I check if I'm affected by CVE-2025-40200?
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.