{"id":"CVE-2025-40307","aliases":["CVE-2025-40307"],"related":[],"kind":"vulnerability","state":"published","title":"exfat: validate cluster allocation bits of the allocation bitmap","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: validate cluster allocation bits of the allocation bitmap\n\nsyzbot created an exfat image with cluster bits not set for the allocation\nbitmap. exfat-fs reads and uses the allocation bitmap without checking\nthis. The problem is that if the start cluster of the allocation bitmap\nis 6, cluster 6 can be allocated when creating a directory with mkdir.\nexfat zeros out this cluster in exfat_mkdir, which can delete existing\nentries. This can reallocate the allocated entries. In addition,\nthe allocation bitmap is also zeroed out, so cluster 6 can be reallocated.\nThis patch adds exfat_test_bitmap_range to validate that clusters used for\nthe allocation bitmap are correctly marked as in-use.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: validate cluster allocation bits of the allocation bitmap\n\nsyzbot created an exfat image with cluster bits not set for the allocation\nbitmap. exfat-fs reads and uses the allocation bitmap without checking\nthis. The problem is that if the start cluster of the allocation bitmap\nis 6, cluster 6 can be allocated when creating a directory with mkdir.\nexfat zeros out this cluster in exfat_mkdir, which can delete existing\nentries. This can reallocate the allocated entries. In addition,\nthe allocation bitmap is also zeroed out, so cluster 6 can be reallocated.\nThis patch adds exfat_test_bitmap_range to validate that clusters used for\nthe allocation bitmap are correctly marked as in-use.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nexfat: validar los bits de asignación de clúster del mapa de bits de asignación\n\nsyzbot creó una imagen exfat con bits de clúster no establecidos para el mapa de bits de asignación. exfat-fs lee y utiliza el mapa de bits de asignación sin comprobar esto. El problema es que si el clúster de inicio del mapa de bits de asignación es 6, el clúster 6 puede ser asignado al crear un directorio con mkdir. exfat pone a cero este clúster en exfat_mkdir, lo que puede eliminar entradas existentes. Esto puede reasignar las entradas asignadas. Además, el mapa de bits de asignación también se pone a cero, por lo que el clúster 6 puede ser reasignado. Este parche añade exfat_test_bitmap_range para validar que los clústeres utilizados para el mapa de bits de asignación están correctamente marcados como en uso.","source":"nvd"}],"published":"2025-12-08T00:46:32.659Z","modified":"2026-10-15T22:19:07.553Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","fixed":"87f827d53bd0688597bda63ae95908e2ad39bac0","status":"affected"},{"type":"git","introduced":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","fixed":"67ce8034dc0278ddd88cad93d4218a945180dddd","status":"affected"},{"type":"git","introduced":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","fixed":"6bc58b4c53795ab5fe00648344aa7d9d61175f90","status":"affected"},{"type":"git","introduced":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","fixed":"13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf","status":"affected"},{"type":"git","introduced":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","fixed":"79c1587b6cda74deb0c86fc7ba194b92958c793c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","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/87f827d53bd0688597bda63ae95908e2ad39bac0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/67ce8034dc0278ddd88cad93d4218a945180dddd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6bc58b4c53795ab5fe00648344aa7d9d61175f90","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79c1587b6cda74deb0c86fc7ba194b92958c793c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:59:01.153Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40307","url":"https://www.cve.org/CVERecord?id=CVE-2025-40307","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:43.363Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40307","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40307","licence":"Public domain","modified":"2026-10-15T22:19:07.553Z"}],"updatedAt":"2026-11-25T22:59:08.397Z","epss":{"score":0.00157,"percentile":0.05131,"date":"2026-12-01T12:00:22.000Z"}}