CVE-2025-40287

published 6 Dec 2025 · updated 11 May 2026

exfat: fix improper check of dentry.stream.valid_size

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 204b1b02ee018ba52ad2ece21fe3a8643d66a1b2, Kernel 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad and Kernel 82ebecdc74ff555daf70b811d854b1f32a296bea.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.8, >=11a347fb6cef62ce47e84b97c45f2b2497c7593b <204b1b02ee018ba52ad2ece21fe3a8643d66a1b2, >=11a347fb6cef62ce47e84b97c45f2b2497c7593b <6c627bcc1896ba62ec793d0c00da74f3c93ce3ad, >=11a347fb6cef62ce47e84b97c45f2b2497c7593b <82ebecdc74ff555daf70b811d854b1f32a296bea204b1b02ee018ba52ad2ece21fe3a8643d66a1b2, 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad, 82ebecdc74ff555daf70b811d854b1f32a296bea

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40287 severity on Zeptric[![CVE-2025-40287](https://zeptric.io/badge/cve/CVE-2025-40287.svg)](https://zeptric.io/cve/CVE-2025-40287)