VDB

CVE-2025-40287

CVE-2025-40287 PUBLISHED

exfat: fix improper check of dentry.stream.valid_size

Reported by linux · Published December 6, 2025

In the Linux kernel, the following vulnerability has been resolved: exfat: fix improper check of dentry.stream.valid_size We found an infinite loop bug in the exFAT file system that can lead to a Denial-of-Service (DoS) condition. When a dentry in an exFAT filesystem is malformed, the following system calls — SYS_openat, SYS_ftruncate, and SYS_pwrite64 — can cause the kernel to hang. Root cause analysis shows that the size validation code in exfat_find() does not check whether dentry.stream.valid_size is negative. As a result, the system calls mentioned above can succeed and eventually trigger the DoS issue. This patch adds a check for negative dentry.stream.valid_size to prevent this vulnerability.

EPSS 0.20% · 9.7th percentile

Fixed versions

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

PackageEcosystemFixed in
perf6.12Amazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-headersAmazon Linux1:6.12.63-84.121.amzn2023
kernel6.12Amazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.63-84.121.amzn2023
LinuxLinux82ebecdc74ff555daf70b811d854b1f32a296bea, 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad, 6.8, 204b1b02ee018ba52ad2ece21fe3a8643d66a1b2

Risk scores

EPSS Score
0.20%
9.7th percentile

Affected products

VendorProductVersions
LinuxLinux11a347fb6cef62ce47e84b97c45f2b2497c7593b, 11a347fb6cef62ce47e84b97c45f2b2497c7593b, 11a347fb6cef62ce47e84b97c45f2b2497c7593b
LinuxLinux6.8, 0, 6.12.59
amazon:2023perf6.120
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.120
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-tools0
LinuxLinux11a347fb6cef62ce47e84b97c45f2b2497c7593b, 6.17.9, 6.12.59
amazon:2023kernel6.12-libbpf-static0
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-libbpf0
amazon:2023python3-perf6.120
linuxlinux_kernel6.8, 6.8, 6.8
amazon:2023kernel-livepatch-6.12.63-84.1210
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-devel0

Timeline

  • Dec 6, 2025 CVE Published
  • Dec 7, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (166 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (204 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40287
vulnetix vdb fixes CVE-2025-40287

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-40287/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 ›