VDB

CVE-2025-40200

CVE-2025-40200 PUBLISHED

Squashfs: reject negative file sizes in squashfs_read_inode()

Reported by linux · Published November 12, 2025

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]

EPSS 0.21% · 11.4th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-develAmazon Linux1:6.1.158-178.288.amzn2023
python3-perfAmazon Linux1:6.1.158-178.288.amzn2023
kernel-toolsAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.55-74.119.amzn2023
bpftoolAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.55-74.119.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.55-74.119.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.55-74.119.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.158-178.288.amzn2023
python3-perf6.12Amazon Linux1:6.12.55-74.119.amzn2023
kernel6.12-headersAmazon Linux1:6.12.55-74.119.amzn2023
perfAmazon Linux1:6.1.158-178.288.amzn2023

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.21%
11.4th percentile

Affected products

VendorProductVersions
LinuxLinux6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1
LinuxLinux2.6.29, 0, 5.4.301
amazon:2023kernel-devel0
amazon:2023python3-perf0
amazon:2023kernel-tools0
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-headers0
amazon:2023perf0
amazon:2023kernel-headers0
LinuxLinux6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1, 6545b246a2c815a8fcd07d58240effb6ec3481b1
amazon:2023kernel0
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023perf6.120

…and 12 more

Timeline

  • Nov 10, 2025 CVE Published
  • Nov 12, 2025 Coalition ESS Score (4 in total, the first dated here)
  • Nov 13, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (135 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (118 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40200
vulnetix vdb fixes CVE-2025-40200

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40200/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›