CVE-2025-40307
exfat: validate cluster allocation bits of the allocation bitmap
Reported by linux · Published December 8, 2025
In the Linux kernel, the following vulnerability has been resolved: exfat: validate cluster allocation bits of the allocation bitmap syzbot created an exfat image with cluster bits not set for the allocation bitmap. exfat-fs reads and uses the allocation bitmap without checking this. The problem is that if the start cluster of the allocation bitmap is 6, cluster 6 can be allocated when creating a directory with mkdir. exfat zeros out this cluster in exfat_mkdir, which can delete existing entries. This can reallocate the allocated entries. In addition, the allocation bitmap is also zeroed out, so cluster 6 can be reallocated. This patch adds exfat_test_bitmap_range to validate that clusters used for the allocation bitmap are correctly marked as in-use.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-devel | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.174-217.345.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.174-217.345.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.174-217.345.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.58-82.121.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.174-217.345.amzn2023 |
| perf | Amazon Linux | 1:6.1.174-217.345.amzn2023 |
| Linux | Linux | 79c1587b6cda74deb0c86fc7ba194b92958c793c, 6bc58b4c53795ab5fe00648344aa7d9d61175f90, 13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003 |
| Linux | Linux | 5.7, 0, 6.1.183 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | perf | 0 |
| Linux | Linux | 6.1.183, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003 |
| amazon:2023 | kernel-livepatch-6.12.58-82.121 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| linux | linux_kernel | 5.7, 5.7, 5.7 |
| amazon:2023 | kernel6.12 | 0 |
…and 9 more
Timeline
- Dec 7, 2025 CVE Published
- Dec 8, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (166 in total, the first dated here)
- Mar 29, 2026 Security Advisory (169 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
- Aug 19, 2026 CVE Updated
- Oct 30, 2026 PoC Published
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40307
vulnetix vdb fixes CVE-2025-40307
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40307/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart