# CVE-2025-40067: fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **Published:** 2025-10-28T11:48:37.034Z
- **Modified:** 2026-10-30T13:18:12.920Z

## Who should check

- Anyone running Linux \>= 47856e10f8d5e066aa26b1f9c02d933fe0620399, \< aab2e34b139f6df71ab2b1adeec9927c206adc79; \>= b35a50d639ca5259466ef5fea85529bb4fb17d5b, \< 978aac54e93ea35aab20b32ae393d3d33964e7ae; \>= 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc, \< be66551da203862c689c12e1d35ce87217c017c1; \>= d99208b91933fd2a58ed9ed321af07dacd06ddc3, \< 039ddf353cc33f6546a87ec1ac3210637d714bec; \>= d99208b91933fd2a58ed9ed321af07dacd06ddc3, \< 0dc7117da8f92dd5fe077d712a756eccbe377d40; 358d4f821c03add421a4c49290538a705852ccf1; a285395020780adac1ffbc844069c3d700bf007a; \>= 6.6.102, \< 6.6.112; \>= 6.12.42, \< 6.12.53; \>= 6.15.10, \< 6.16; …
- Anyone running Linux 6.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: reject index allocation if $BITMAP is empty but blocks exist

Index allocation requires at least one bit in the $BITMAP attribute to
track usage of index entries. If the bitmap is empty while index blocks
are already present, this reflects on-disk corruption.

syzbot triggered this condition using a malformed NTFS image. During a
rename() operation involving a long filename (which spans multiple
index entries), the empty bitmap allowed the name to be added without
valid tracking. Subsequent deletion of the original entry failed with
-ENOENT, due to unexpected index state.

Reject such cases by verifying that the bitmap is not empty when index
blocks exist.

## Affected and fixed versions

- Linux: \>= 47856e10f8d5e066aa26b1f9c02d933fe0620399, \< aab2e34b139f6df71ab2b1adeec9927c206adc79; \>= b35a50d639ca5259466ef5fea85529bb4fb17d5b, \< 978aac54e93ea35aab20b32ae393d3d33964e7ae; \>= 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc, \< be66551da203862c689c12e1d35ce87217c017c1; \>= d99208b91933fd2a58ed9ed321af07dacd06ddc3, \< 039ddf353cc33f6546a87ec1ac3210637d714bec; \>= d99208b91933fd2a58ed9ed321af07dacd06ddc3, \< 0dc7117da8f92dd5fe077d712a756eccbe377d40; 358d4f821c03add421a4c49290538a705852ccf1; a285395020780adac1ffbc844069c3d700bf007a; \>= 6.6.102, \< 6.6.112; \>= 6.12.42, \< 6.12.53; \>= 6.15.10, \< 6.16; … (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40067. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40067.md
Affected: Linux >= 47856e10f8d5e066aa26b1f9c02d933fe0620399, < aab2e34b139f6df71ab2b1adeec9927c206adc79; >= b35a50d639ca5259466ef5fea85529bb4fb17d5b, < 978aac54e93ea35aab20b32ae393d3d33964e7ae; >= 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc, < be66551da203862c689c12e1d35ce87217c017c1; >= d99208b91933fd2a58ed9ed…
Fixed in: Linux 978aac54e93ea35aab20b32ae393d3d33964e7ae, Linux 039ddf353cc33f6546a87ec1ac3210637d714bec, Linux 0dc7117da8f92dd5fe077d712a756eccbe377d40, Linux 6.6.112, Linux 6.12.53, Linux 6.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40067 being exploited?

There is no confirmed exploitation: CVE-2025-40067 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40067?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-40067?

Linux \>= 47856e10f8d5e066aa26b1f9c02d933fe0620399, \< aab2e34b139f6df71ab2b1adeec9927c206adc79; \>= b35a50d639ca5259466ef5fea85529bb4fb17d5b, \< 978aac54e93ea35aab20b32ae393d3d33964e7ae; \>= 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc, \< be66551da203862c689c12e1d35ce87217c017c1; \>= d99208b91933fd2a58ed9ed321af07dacd06ddc3, \< 039ddf353cc33f6546a87ec1ac3210637d714bec; \>= d99208b91933fd2a58ed9ed321af07dacd06ddc3, \< 0dc7117da8f92dd5fe077d712a756eccbe377d40; 358d4f821c03add421a4c49290538a705852ccf1; a285395020780adac1ffbc844069c3d700bf007a; \>= 6.6.102, \< 6.6.112; \>= 6.12.42, \< 6.12.53; \>= 6.15.10, \< 6.16; …; Linux 6.17.

### Is there a fix for CVE-2025-40067?

Yes. Fixed in Linux 978aac54e93ea35aab20b32ae393d3d33964e7ae, Linux 039ddf353cc33f6546a87ec1ac3210637d714bec, Linux 0dc7117da8f92dd5fe077d712a756eccbe377d40, Linux 6.6.112, Linux 6.12.53, Linux 6.16. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40067?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/aab2e34b139f6df71ab2b1adeec9927c206adc79>
- other: <https://git.kernel.org/stable/c/978aac54e93ea35aab20b32ae393d3d33964e7ae>
- other: <https://git.kernel.org/stable/c/be66551da203862c689c12e1d35ce87217c017c1>
- other: <https://git.kernel.org/stable/c/039ddf353cc33f6546a87ec1ac3210637d714bec>
- other: <https://git.kernel.org/stable/c/0dc7117da8f92dd5fe077d712a756eccbe377d40>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40067>

HTML: <https://flawdb.com/CVE-2025-40067> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40067>
