CVE-2025-40200

published 12 Nov 2025 · updated 11 May 2026

Squashfs: reject negative file sizes in squashfs_read_inode()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2871c74caa3f4f05b429e6bfefebac62dbf1b408, Kernel 54170057a5fadd24a37b70de41e61d39284d9bd7, Kernel 8118f66124895829443d09c207e654adcb2f9321 and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=2.6.29, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <2871c74caa3f4f05b429e6bfefebac62dbf1b408, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <54170057a5fadd24a37b70de41e61d39284d9bd7, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <8118f66124895829443d09c207e654adcb2f9321, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <875fb3f87ae0225b881319ba016a1a8c4ffd5812, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <8c7aad76751816207fee556d44aa88a710824810, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <f271155ff31aca8ef82c61c8df23ca97e9a77dd4, >=6545b246a2c815a8fcd07d58240effb6ec3481b1 <fbfc745db628de31f5c089147deeb87e95b89e662871c74caa3f4f05b429e6bfefebac62dbf1b408, 54170057a5fadd24a37b70de41e61d39284d9bd7, 8118f66124895829443d09c207e654adcb2f9321, 875fb3f87ae0225b881319ba016a1a8c4ffd5812, 8c7aad76751816207fee556d44aa88a710824810, 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b, f271155ff31aca8ef82c61c8df23ca97e9a77dd4, fbfc745db628de31f5c089147deeb87e95b89e66

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40200 severity on Zeptric[![CVE-2025-40200](https://zeptric.io/badge/cve/CVE-2025-40200.svg)](https://zeptric.io/cve/CVE-2025-40200)