CVE-2025-40287
kernel: exfat: fix improper check of dentry.stream.valid_size
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 6, 2025
Updated · June 30, 2026
Description
An infinite loop vulnerability was found in the exFAT filesystem driver in the Linux kernel. The exfat_find() function does not validate if dentry.stream.valid_size is negative. A malformed exFAT filesystem with such entries causes the kernel to hang during file operations like open, truncate, or write.
Statement
Mounting a maliciously crafted exFAT filesystem is required. exFAT is commonly used on removable media like SD cards and USB drives, so physical access or control over mounted media could enable this attack.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-839 · Numeric Range Comparison Without Minimum Check