# CVE-2026-64431: ntfs: avoid calling post\_write\_mst\_fixup() for invalid index\_block

> 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:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; 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.17% (percentile 3, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-07-25T08:51:07.194Z
- **Modified:** 2026-09-03T18:29:10.100Z

## Who should check

- Anyone running Linux \>= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, \< e2018628301a6d9f54e34b0cb417f1688c66df1d; \>= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, \< 5b6eedd7cc2936f9238e852b553a1b326105bde8
- Anyone running Linux 7.1

## Description

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

ntfs: avoid calling post\_write\_mst\_fixup() for invalid index\_block

ntfs\_icx\_ib\_sync\_write() calls post\_write\_mst\_fixup() when ntfs\_ib\_write()
returns an error, intending to restore the buffer after a failed write.

However, ntfs\_ib\_write() returns an error immediately if
pre\_write\_mst\_fixup() validation fails. The caller,
ntfs\_icx\_ib\_sync\_write(), interprets any error as a write failure
requiring rollback. It does not differentiate between I/O errors and
validation failures, and calls post\_write\_mst\_fixup() anyway.

Since post\_write\_mst\_fixup() assumes that the index\_block contents is
correct, it doesn't perform the boundary checks, which results in
out-of-bounds memory access.

An attacker can craft a malicious NTFS image with:
  - large index\_block.usa\_ofs offset, pointing outside the ntfs\_record
  - index\_block.usa\_count = 0, causing integer underflow
  - or index\_block.usa\_count larger than actual number of sectors in the
    ntfs\_record, causing out-of-bounds access

KASAN reports describing the memory corruption:
  ==================================================================
  BUG: KASAN: slab-out-of-bounds in post\_write\_mst\_fixup+0x19c/0x1d0
  Read of size 2 at addr ffff8881586c9018 by task p/9428
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x100/0x190
   print\_report+0x139/0x4ad
   ? post\_write\_mst\_fixup+0x19c/0x1d0
   ? \_\_virt\_addr\_valid+0x262/0x500
   ? post\_write\_mst\_fixup+0x19c/0x1d0
   kasan\_report+0xe4/0x1d0
   ? post\_write\_mst\_fixup+0x19c/0x1d0
   post\_write\_mst\_fixup+0x19c/0x1d0
   ntfs\_icx\_ib\_sync\_write+0x179/0x220
   ntfs\_inode\_sync\_filename+0x83d/0x1080
   \_\_ntfs\_write\_inode+0x1049/0x1480
   ntfs\_file\_fsync+0x131/0x9b0
  ==================================================================
  BUG: KASAN: slab-out-of-bounds in post\_write\_mst\_fixup+0x1aa/0x1d0
  Write of size 2 at addr ffff8881586c91fe by task p/9428
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x100/0x190
   print\_report+0x139/0x4ad
   ? post\_write\_mst\_fixup+0x1aa/0x1d0
   ? \_\_virt\_addr\_valid+0x262/0x500
   ? post\_write\_mst\_fixup+0x1aa/0x1d0
   kasan\_report+0xe4/0x1d0
   ? post\_write\_mst\_fixup+0x1aa/0x1d0
   post\_write\_mst\_fixup+0x1aa/0x1d0
   ntfs\_icx\_ib\_sync\_write+0x179/0x220
   ntfs\_inode\_sync\_filename+0x83d/0x1080
   \_\_ntfs\_write\_inode+0x1049/0x1480
   ntfs\_file\_fsync+0x131/0x9b0
  ==================================================================

Let's move the post\_write\_mst\_fixup() call to ntfs\_ib\_write().
The ntfs\_ib\_write() function calls pre\_write\_mst\_fixup() at the beginning.
If the index\_block contents is invalid, pre\_write\_mst\_fixup() fails and
ntfs\_ib\_write() returns early without calling post\_write\_mst\_fixup() on
bad index\_block.

## Affected and fixed versions

- Linux: \>= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, \< e2018628301a6d9f54e34b0cb417f1688c66df1d; \>= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, \< 5b6eedd7cc2936f9238e852b553a1b326105bde8 (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 5b6eedd7cc2936f9238e852b553a1b326105bde8 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64431.md
Affected: Linux >= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, < e2018628301a6d9f54e34b0cb417f1688c66df1d; >= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, < 5b6eedd7cc2936f9238e852b553a1b326105bde8; Linux 7.1
Fixed in: Linux 5b6eedd7cc2936f9238e852b553a1b326105bde8

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-2026-64431 being exploited?

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

### How serious is CVE-2026-64431?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64431?

Linux \>= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, \< e2018628301a6d9f54e34b0cb417f1688c66df1d; \>= 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0, \< 5b6eedd7cc2936f9238e852b553a1b326105bde8; Linux 7.1.

### Is there a fix for CVE-2026-64431?

Yes. Fixed in Linux 5b6eedd7cc2936f9238e852b553a1b326105bde8. Upgrade Linux to 5b6eedd7cc2936f9238e852b553a1b326105bde8 or later.

### How do I check if I'm affected by CVE-2026-64431?

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

- patch: <https://git.kernel.org/stable/c/e2018628301a6d9f54e34b0cb417f1688c66df1d>
- patch: <https://git.kernel.org/stable/c/5b6eedd7cc2936f9238e852b553a1b326105bde8>

## 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-2026-64431>

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