CVE-2025-40307 Details
Description
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.
A vulnerability in the Linux kernel's exFAT file system implementation allows for improper validation of cluster allocation bits in the allocation bitmap. This issue arises because the exFAT file system can read and use the allocation bitmap without verifying its integrity. Specifically, if the allocation bitmap starts at cluster 6, this cluster can be erroneously allocated when a directory is created using the 'mkdir' command. The exFAT file system zeros out this cluster during the directory creation process, potentially deleting existing entries and reallocating them. Furthermore, the allocation bitmap itself is also cleared, allowing cluster 6 to be reallocated again. The vulnerability has been addressed by introducing a validation function to ensure that clusters designated for the allocation bitmap are correctly marked as in use.
Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been fixed. Instructions for upgrading the Linux kernel can be found in the official Linux documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/13c1d24803d5b0446b3f6f0fdd67e07ac1fdc7bf | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/67ce8034dc0278ddd88cad93d4218a945180dddd | kernel.org | |
| https://git.kernel.org/stable/c/6bc58b4c53795ab5fe00648344aa7d9d61175f90 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/79c1587b6cda74deb0c86fc7ba194b92958c793c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/87f827d53bd0688597bda63ae95908e2ad39bac0 | kernel.org |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Aug 19, 2026 | CVE Modified | kernel.org |
| Aug 3, 2026 | CVE Modified | kernel.org |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion