CVE Database›Document archive›CVE-2025-40307

CVE-2025-40307

kernel: exfat: validate cluster allocation bits of the allocation bitmap

Loading…

Severity

Moderate

Red Hat Product Security

6.3

CVSS 3.1

Review impact separately from score.

Published · December 8, 2025

Updated · July 30, 2026

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.

Statement

This vulnerability is rated Moderate for Red Hat Enterprise Linux 9 and 10. An attacker could craft a malicious exFAT image that, when mounted and a directory created, could lead to data corruption or a denial of service. Red Hat Enterprise Linux 6, 7, and 8 are not affected as the vulnerable code is not present.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

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

CWE-1285 · Improper Validation of Specified Index, Position, or Offset in Input