# CVE-2026-142892: ntfs3: release ni\_lock before dir\_emit in ntfs\_readdir to fix deadlocks

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:44.197Z
- **Modified:** 2026-12-03T04:18:28.243Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local access can trigger lock-order inversion deadlocks in the Linux kernel's ntfs3 filesystem driver during directory reads, by page faults while holding a lock in ntfs\_readdir.

## Who should check

- Anyone running Linux \>= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, \< 7298c7d60108c72400f4cdd028ae481265cd080a; \>= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, \< 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d
- Anyone running Linux 7.2

## Description

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

ntfs3: release ni\_lock before dir\_emit in ntfs\_readdir to fix deadlocks

ntfs\_readdir() holds ni\_lock while calling ntfs\_read\_hdr(), which calls
dir\_emit() to copy directory entries to userspace.  If the user buffer
triggers a page fault, the fault handler may need mmap\_lock or
mapping-\>invalidate\_lock, creating lock-order inversions with paths
that acquire those locks before ni\_lock (e.g. ntfs\_fallocate, mmap).

Fix by releasing ni\_lock before calling ntfs\_read\_hdr():

- For non-root index nodes, indx\_read\_ra() returns data in a kmalloc'd
  buffer (node-\>index) that remains valid after ni\_unlock.

- For the root index header, the data lives in the main MFT record
  whose lifetime is bound to the inode.  i\_rwsem shared prevents
  concurrent directory modifications, so it is safe to access after
  ni\_unlock.

## Affected and fixed versions

- Linux: \>= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, \< 7298c7d60108c72400f4cdd028ae481265cd080a; \>= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, \< 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d (cvelist)
- Linux: 7.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d 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-142892. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142892.md
Affected: Linux >= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, < 7298c7d60108c72400f4cdd028ae481265cd080a; >= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, < 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d; Linux 7.2
Fixed in: Linux 7298c7d60108c72400f4cdd028ae481265cd080a, Linux 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d

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

There is no confirmed exploitation: CVE-2026-142892 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, \< 7298c7d60108c72400f4cdd028ae481265cd080a; \>= d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c, \< 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d; Linux 7.2.

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

Yes. Fixed in Linux 7298c7d60108c72400f4cdd028ae481265cd080a, Linux 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d. Upgrade Linux to 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d or later.

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

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/7298c7d60108c72400f4cdd028ae481265cd080a>
- other: <https://git.kernel.org/stable/c/7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d>

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

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