# CVE-2026-90131: ntfs: serialize resident iomap reads with mrec\_lock

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; 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.16% (percentile 2, 2026-11-26)
- **Published:** 2026-09-17T16:06:31.913Z
- **Modified:** 2026-10-19T09:19:02.813Z

## Who should check

- Anyone running Linux \>= b041ca562526b3c4a71b41b80ba5e520eac636ad, \< 0400e0d50eb3be19c98323faa322b652e4ae3f99; \>= b041ca562526b3c4a71b41b80ba5e520eac636ad, \< d9e00c457d4ab8ab59c6e4b8554c921260e4e16c
- Anyone running Linux 7.1

## Description

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

ntfs: serialize resident iomap reads with mrec\_lock

ntfs\_read\_iomap\_begin\_resident() walks the MFT record through
ntfs\_attr\_lookup() -\> ntfs\_attr\_find() without taking ni-\>mrec\_lock,
while ntfs\_attr\_record\_resize(), ntfs\_make\_room\_for\_attr() and
ntfs\_resident\_attr\_record\_add() memmove() the same base\_ni-\>mrec buffer
under that lock. map\_mft\_record() only takes a reference and does not
serialize, so the reader can observe torn attribute length and offset
fields while a writer is relocating the records.

KCSAN reports the race between the mmap read fault path and both link()
and unlink():

  BUG: KCSAN: data-race in ntfs\_attr\_find / ntfs\_attr\_record\_resize

  write to 0xffff888100af1018 of 4 bytes by task 96 on cpu 1:
   ntfs\_attr\_record\_resize+0xd2/0x130
   ntfs\_attr\_record\_rm+0xad/0x530
   ntfs\_delete+0x224/0x640
   ntfs\_unlink+0x14d/0x280
   vfs\_unlink+0x157/0x520

  read to 0xffff888100af1018 of 4 bytes by task 95 on cpu 0:
   ntfs\_attr\_find+0x104/0x5b0
   ntfs\_attr\_lookup+0x39c/0x10c0
   ntfs\_read\_iomap\_begin\_resident+0xc6/0x230
   ntfs\_read\_iomap\_begin+0x5d/0xa0
   iomap\_iter+0x2e2/0x6e0
   iomap\_read\_folio+0x147/0x2a0
   ntfs\_read\_folio+0x108/0x170
   filemap\_read\_folio+0x35/0x100
   filemap\_fault+0x993/0x1000

  value changed: 0x00000250 -\> 0x000001f0

The address is mrec + 0x18, i.e. mft\_record.bytes\_in\_use, and the change
is the 96 bytes of one $FILE\_NAME attribute being removed.

Keep base\_ni-\>mrec\_lock from the resident read iomap lookup through
iomap\_end(). This protects both the attribute walk and the subsequent copy
from iomap-\>inline\_data, which points into the MFT record. The non-resident
path is left alone: ntfs\_lookup() already holds the directory inode's
mrec\_lock when it reads an index folio through read\_mapping\_folio(), and
taking the lock in the shared wrapper deadlocks there with recursive locking
on mrec\_lock. The comment above the read\_mapping\_folio() call in
fs/ntfs/dir.c notes the same hazard.

The seek path uses the same lookup helper but does not dereference
iomap-\>inline\_data. Release the lock before returning from that path,
whereas the regular read path records base\_ni in iomap-\>private and releases
the lock from its iomap\_end() callback.

Tested with a reproducer that faults in a 16-byte resident file while
another thread runs link()/unlink() on it. Before: 40 KCSAN reports in
about one second. After: no reports in 180 seconds over 206,090 read
iterations and 423,540 link/unlink cycles. A PROVE\_LOCKING build shows no
lockdep splat with the same reproducer running for 60 seconds.

## Affected and fixed versions

- Linux: \>= b041ca562526b3c4a71b41b80ba5e520eac636ad, \< 0400e0d50eb3be19c98323faa322b652e4ae3f99; \>= b041ca562526b3c4a71b41b80ba5e520eac636ad, \< d9e00c457d4ab8ab59c6e4b8554c921260e4e16c (cvelist)
- Linux: 7.1 (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-2026-90131. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90131.md
Affected: Linux >= b041ca562526b3c4a71b41b80ba5e520eac636ad, < 0400e0d50eb3be19c98323faa322b652e4ae3f99; >= b041ca562526b3c4a71b41b80ba5e520eac636ad, < d9e00c457d4ab8ab59c6e4b8554c921260e4e16c; Linux 7.1
Fixed in: Linux 0400e0d50eb3be19c98323faa322b652e4ae3f99

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-90131 being exploited?

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

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

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

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

Linux \>= b041ca562526b3c4a71b41b80ba5e520eac636ad, \< 0400e0d50eb3be19c98323faa322b652e4ae3f99; \>= b041ca562526b3c4a71b41b80ba5e520eac636ad, \< d9e00c457d4ab8ab59c6e4b8554c921260e4e16c; Linux 7.1.

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

Yes. Fixed in Linux 0400e0d50eb3be19c98323faa322b652e4ae3f99. No fix listed yet: follow the vendor advisory.

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

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/0400e0d50eb3be19c98323faa322b652e4ae3f99>
- other: <https://git.kernel.org/stable/c/d9e00c457d4ab8ab59c6e4b8554c921260e4e16c>

## 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-90131>

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