{"id":"CVE-2025-40287","published":"2025-12-06T21:51:13Z","modified":"2026-05-11T21:46:25Z","title":"exfat: fix improper check of dentry.stream.valid_size","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00199,"percentile":0.09727,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6c627bcc1896ba62ec793d0c00da74f3c93ce3ad","tags":[]},{"url":"https://git.kernel.org/stable/c/204b1b02ee018ba52ad2ece21fe3a8643d66a1b2","tags":[]},{"url":"https://git.kernel.org/stable/c/82ebecdc74ff555daf70b811d854b1f32a296bea","tags":[]}],"priority":{"score":1.9,"factors":[{"name":"EPSS percentile","points":1.95}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 11a347fb6cef62ce47e84b97c45f2b2497c7593b, < 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad",">= 11a347fb6cef62ce47e84b97c45f2b2497c7593b, < 204b1b02ee018ba52ad2ece21fe3a8643d66a1b2",">= 11a347fb6cef62ce47e84b97c45f2b2497c7593b, < 82ebecdc74ff555daf70b811d854b1f32a296bea"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"euvd":{"id":"EUVD-2025-201568","exploited":false,"provenance":"source"}}