Squashfs: reject negative file sizes in squashfs_read_inode()

Summary

CVECVE-2025-40200
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-11-12 22:15:47 UTC
Updated2026-10-19 21:10:00 UTC
DescriptionIn 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]

Risk And Classification

EPSS: 0.002100000 probability, percentile 0.105250000 (date 2026-10-19)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 54170057a5fadd24a37b70de41e61d39284d9bd7 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 2871c74caa3f4f05b429e6bfefebac62dbf1b408 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 fbfc745db628de31f5c089147deeb87e95b89e66 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 8118f66124895829443d09c207e654adcb2f9321 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 8c7aad76751816207fee556d44aa88a710824810 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 875fb3f87ae0225b881319ba016a1a8c4ffd5812 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 f271155ff31aca8ef82c61c8df23ca97e9a77dd4 git Not specified
CNA Linux Linux affected 6545b246a2c815a8fcd07d58240effb6ec3481b1 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b git Not specified
CNA Linux Linux affected 2.6.29 Not specified
CNA Linux Linux unaffected 2.6.29 semver Not specified
CNA Linux Linux unaffected 5.4.301 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.246 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.195 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.157 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.113 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.54 6.12.* semver Not specified
CNA Linux Linux unaffected 6.17.4 6.17.* semver Not specified
CNA Linux Linux unaffected 6.18 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2871c74caa3f4f05b429e6bfefebac62dbf1b408 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/54170057a5fadd24a37b70de41e61d39284d9bd7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f271155ff31aca8ef82c61c8df23ca97e9a77dd4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/fbfc745db628de31f5c089147deeb87e95b89e66 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8118f66124895829443d09c207e654adcb2f9321 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8c7aad76751816207fee556d44aa88a710824810 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/875fb3f87ae0225b881319ba016a1a8c4ffd5812 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report