CVE-2025-40200

Source
https://cve.org/CVERecord?id=CVE-2025-40200
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40200.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40200
Downstream
Related
Published
2025-11-12T21:56:33.783Z
Modified
2026-03-20T12:43:13.086826Z
Summary
Squashfs: reject negative file sizes in squashfs_read_inode()
Details

In the Linux kernel, the following vulnerability has been resolved:

Squashfs: reject negative file sizes in squashfsreadinode()

Syskaller reports a "WARNING in ovlcopyup_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]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40200.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6545b246a2c815a8fcd07d58240effb6ec3481b1
Fixed
54170057a5fadd24a37b70de41e61d39284d9bd7
Fixed
2871c74caa3f4f05b429e6bfefebac62dbf1b408
Fixed
fbfc745db628de31f5c089147deeb87e95b89e66
Fixed
8118f66124895829443d09c207e654adcb2f9321
Fixed
8c7aad76751816207fee556d44aa88a710824810
Fixed
875fb3f87ae0225b881319ba016a1a8c4ffd5812
Fixed
f271155ff31aca8ef82c61c8df23ca97e9a77dd4
Fixed
9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40200.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.29
Fixed
5.4.301
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.157
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.113
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.54
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40200.json"