Not scored
exfat: fix improper check of dentry.stream.valid_size
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 11a347fb6cef62ce47e84b97c45f2b2497c7593b before 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad, from 11a347fb6cef62ce47e84b97c45f2b2497c7593b before 204b1b02ee018ba52ad2ece21fe3a8643d66a1b2, from 11a347fb6cef62ce47e84b97c45f2b2497c7593b before 82ebecdc74ff555daf70b811d854b1f32a296bea, 6.8 Not affected: before 6.8, from 6.12.59 up to 6.12.*, from 6.17.9 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: exfat: corrige la comprobación incorrecta de dentry.stream.valid_size Hemos encontrado un error de bucle infinito en el sistema de archivos exFAT que puede conducir a una condición de Denegación de Servicio (DoS). Cuando una dentry en un sistema de archivos exFAT está malformada, las siguientes llamadas al sistema - SYS_openat, SYS_ftruncate y SYS_pwrite64 - pueden hacer que el kernel se cuelgue. El análisis de la causa raíz muestra que el código de validación de tamaño en exfat_find() no comprueba si dentry.stream.valid_size es negativo. Como resultado, las llamadas al sistema mencionadas anteriormente pueden tener éxito y eventualmente desencadenar el problema de DoS. Este parche añade una comprobación para dentry.stream.valid_size negativo para prevenir esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40287 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-40287 changed 2026-10-15 | Public domain |