{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40307","id":"CVE-2025-40307","title":"exfat: validate cluster allocation bits of the allocation bitmap","description":"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 ","descriptionLong":"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.","published":"2025-12-08T00:46:32.659Z","updated":"2026-10-28T02:30:46.200012796Z","reserved":"2025-04-16T07:20:57.185Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","lessThan":"87f827d53bd0688597bda63ae95908e2ad39bac0","status":"affected","versionType":"git"},{"version":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","lessThan":"67ce8034dc0278ddd88cad93d4218a945180dddd","status":"affected","versionType":"git"},{"version":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","lessThan":"6bc58b4c53795ab5fe00648344aa7d9d61175f90","status":"affected","versionType":"git"},{"version":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","lessThan":"13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf","status":"affected","versionType":"git"},{"version":"1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003","lessThan":"79c1587b6cda74deb0c86fc7ba194b92958c793c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"6.1.183","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.148","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.58","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.8","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/87f827d53bd0688597bda63ae95908e2ad39bac0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/67ce8034dc0278ddd88cad93d4218a945180dddd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/6bc58b4c53795ab5fe00648344aa7d9d61175f90","tags":["web"]},{"url":"https://git.kernel.org/stable/c/13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf","tags":["web"]},{"url":"https://git.kernel.org/stable/c/79c1587b6cda74deb0c86fc7ba194b92958c793c","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40307.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40307","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00157,"epssPercentile":0.04965,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40307","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40307","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40307","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-40307","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}