{"id":"CVE-2025-40287","aliases":["CVE-2025-40287"],"related":[],"kind":"vulnerability","state":"published","title":"exfat: fix improper check of dentry.stream.valid_size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix improper check of dentry.stream.valid_size\n\nWe found an infinite loop bug in the exFAT file system that can lead to a\nDenial-of-Service (DoS) condition. When a dentry in an exFAT filesystem is\nmalformed, the following system calls — SYS_openat, SYS_ftruncate, and\nSYS_pwrite64 — can cause the kernel to hang.\n\nRoot cause analysis shows that the size validation code in exfat_find()\ndoes not check whether dentry.stream.valid_size is negative. As a result,\nthe system calls mentioned above can succeed and eventually trigger the DoS\nissue.\n\nThis patch adds a check for negative dentry.stream.valid_size to prevent\nthis vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix improper check of dentry.stream.valid_size\n\nWe found an infinite loop bug in the exFAT file system that can lead to a\nDenial-of-Service (DoS) condition. When a dentry in an exFAT filesystem is\nmalformed, the following system calls — SYS_openat, SYS_ftruncate, and\nSYS_pwrite64 — can cause the kernel to hang.\n\nRoot cause analysis shows that the size validation code in exfat_find()\ndoes not check whether dentry.stream.valid_size is negative. As a result,\nthe system calls mentioned above can succeed and eventually trigger the DoS\nissue.\n\nThis patch adds a check for negative dentry.stream.valid_size to prevent\nthis vulnerability.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nexfat: corrige la comprobación incorrecta de dentry.stream.valid_size\n\nHemos 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.\n\nEl 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.\n\nEste parche añade una comprobación para dentry.stream.valid_size negativo para prevenir esta vulnerabilidad.","source":"nvd"}],"published":"2025-12-06T21:51:13.328Z","modified":"2026-10-15T19:10:00.173Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"11a347fb6cef62ce47e84b97c45f2b2497c7593b","fixed":"6c627bcc1896ba62ec793d0c00da74f3c93ce3ad","status":"affected"},{"type":"git","introduced":"11a347fb6cef62ce47e84b97c45f2b2497c7593b","fixed":"204b1b02ee018ba52ad2ece21fe3a8643d66a1b2","status":"affected"},{"type":"git","introduced":"11a347fb6cef62ce47e84b97c45f2b2497c7593b","fixed":"82ebecdc74ff555daf70b811d854b1f32a296bea","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.59","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.9","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6c627bcc1896ba62ec793d0c00da74f3c93ce3ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/204b1b02ee018ba52ad2ece21fe3a8643d66a1b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82ebecdc74ff555daf70b811d854b1f32a296bea","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40287","url":"https://www.cve.org/CVERecord?id=CVE-2025-40287","licence":"CVE Terms of Use","modified":"2026-05-11T21:46:25.955Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40287","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40287","licence":"Public domain","modified":"2026-10-15T19:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:08.380Z","epss":{"score":0.00199,"percentile":0.10167,"date":"2026-12-01T12:00:22.000Z"}}