CVE-2025-40287 Details
Description
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.
A denial-of-service vulnerability has been identified in the Linux kernel's exFAT filesystem. The issue arises from improper validation of the 'valid_size' attribute in directory entries. When this attribute is negative, it can lead to an infinite loop, causing the kernel to hang. This vulnerability is triggered by certain system calls, including 'openat', 'ftruncate', and 'pwrite64', which can successfully execute and eventually cause the system to become unresponsive.
The vulnerability has been addressed in a patch that adds a check for negative 'valid_size' values in the exFAT filesystem code. Users should apply this patch to mitigate the issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/204b1b02ee018ba52ad2ece21fe3a8643d66a1b2 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6c627bcc1896ba62ec793d0c00da74f3c93ce3ad | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/82ebecdc74ff555daf70b811d854b1f32a296bea | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 6, 2025 | New CVE Received | kernel.org |
Volerion