CVE-2025-40287
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.12 | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| Linux | Linux | 82ebecdc74ff555daf70b811d854b1f32a296bea, 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad, 6.8, 204b1b02ee018ba52ad2ece21fe3a8643d66a1b2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 11a347fb6cef62ce47e84b97c45f2b2497c7593b, 11a347fb6cef62ce47e84b97c45f2b2497c7593b, 11a347fb6cef62ce47e84b97c45f2b2497c7593b |
| Linux | Linux | 6.8, 0, 6.12.59 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| Linux | Linux | 11a347fb6cef62ce47e84b97c45f2b2497c7593b, 6.17.9, 6.12.59 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| linux | linux_kernel | 6.8, 6.8, 6.8 |
| amazon:2023 | kernel-livepatch-6.12.63-84.121 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
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