CVE-2025-40200 Details
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]
A vulnerability in the Linux kernel's Squashfs file system has been addressed, which involved improper handling of file sizes. The issue arose in the Squashfs 'read_inode' function, where negative file sizes were not correctly managed. This oversight led to a warning in Overlayfs, as the negative size caused complications during file operations. The vulnerability has been resolved by implementing a check for negative file sizes, ensuring that such cases are properly handled by returning an 'EINVAL' error.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for updating the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| Linux Squashfs | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |
Volerion