Numeric Range Comparison Without Minimum Check Affecting kernel-headers package, versions <1:6.1.158-178.288.amzn2023


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-KERNELHEADERS-14431663
  • published17 Dec 2025
  • disclosed12 Nov 2025

Introduced: 12 Nov 2025

CVE-2025-40200  (opens in a new tab)
CWE-839  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 kernel-headers to version 1:6.1.158-178.288.amzn2023 or higher.
This issue was patched in ALAS2023-2025-1297.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-headers package and not the kernel-headers package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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]

CVSS Base Scores

version 3.1