CVE-2025-40287: Linux kernel · exfat: fix improper check of dentry.stream.valid_size
Source GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 04:14 UTC
Rated High by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 7 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
AI-suggested
A patch has been released that adds a check for negative dentry.stream.valid_size values to prevent the infinite loop and DoS condition. Users should apply the official Linux kernel update containing this fix. No alternative mitigations are indicated.
Description
A vulnerability in the Linux kernel's exFAT filesystem allows an infinite loop leading to a Denial-of-Service (DoS) condition. The issue arises from improper validation of the dentry.stream.valid_size field, which can be negative but was not checked. This flaw affects system calls such as SYS_openat, SYS_ftruncate, and SYS_pwrite64, causing the kernel to hang when processing malformed dentries. A patch has been introduced to add the missing check and prevent this issue.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40287 (opens in a new tab)
- git.kernel.org/stable/c/204b1b02ee018ba52ad2ece21fe3a8643d66a1b2 (opens in a new tab)
- git.kernel.org/stable/c/6c627bcc1896ba62ec793d0c00da74f3c93ce3ad (opens in a new tab)
- git.kernel.org/stable/c/82ebecdc74ff555daf70b811d854b1f32a296bea (opens in a new tab)