VDB

CVE-2025-40307

CVE-2025-40307 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel6.12-develAmazon Linux1:6.12.58-82.121.amzn2023
perf6.12Amazon Linux1:6.12.58-82.121.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.58-82.121.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.58-82.121.amzn2023
bpftoolAmazon Linux1:6.1.174-217.345.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.174-217.345.amzn2023
kernel-modules-extraAmazon Linux1:6.1.174-217.345.amzn2023
bpftool6.12Amazon Linux1:6.12.58-82.121.amzn2023
kernel-develAmazon Linux1:6.1.174-217.345.amzn2023
perfAmazon Linux1:6.1.174-217.345.amzn2023
LinuxLinux79c1587b6cda74deb0c86fc7ba194b92958c793c, 6bc58b4c53795ab5fe00648344aa7d9d61175f90, 13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003
LinuxLinux5.7, 0, 6.1.183
amazon:2023kernel6.12-devel0
amazon:2023perf6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2023bpftool6.120
amazon:2023kernel-devel0
amazon:2023perf0
LinuxLinux6.1.183, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003, 1acf1a564b6034b5af1e7fb23cb98cb3bb4f6003
amazon:2023kernel-livepatch-6.12.58-82.1210
amazon:2023python3-perf6.120
amazon:2023python3-perf0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-tools-devel0
linuxlinux_kernel5.7, 5.7, 5.7
amazon:2023kernel6.120

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›