CVE-2025-40200

Squashfs: reject negative file sizes in squashfs_read_inode()

N/A
Published: November 12, 2025 at 09:56 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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. [[email protected]: only need to check 64 bit quantity]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.296545b246a2c815a8fcd07d58240effb6ec3481b1
Vendor states this is fixed in 2871c74caa3f4f05b429e6bfefebac62dbf1b408 (fixed)
Vendor states this is fixed in 54170057a5fadd24a37b70de41e61d39284d9bd7 (fixed)
Vendor states this is fixed in 8118f66124895829443d09c207e654adcb2f9321 (fixed)
Vendor states this is fixed in 875fb3f87ae0225b881319ba016a1a8c4ffd5812 (fixed)
Vendor states this is fixed in 8c7aad76751816207fee556d44aa88a710824810 (fixed)
Vendor states this is fixed in 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b (fixed)
Vendor states this is fixed in f271155ff31aca8ef82c61c8df23ca97e9a77dd4 (fixed)
Vendor states this is fixed in fbfc745db628de31f5c089147deeb87e95b89e66 (fixed)
Vendor states this is fixed in 2.6.29 (unaffected)
Vendor states this is fixed in 5.10.246 (unaffected)
Vendor states this is fixed in 5.15.195 (unaffected)
Vendor states this is fixed in 5.4.301 (unaffected)
Vendor states this is fixed in 6.1.157 (unaffected)
Vendor states this is fixed in 6.12.54 (unaffected)
Vendor states this is fixed in 6.17.4 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.113 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card