# CVE-2025-71309: fs/ntfs3: fix deadlock in ni\_read\_folio\_cmpr

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-05-27T12:15:03.360Z
- **Modified:** 2026-11-23T08:17:13.610Z

## Who should check

- Anyone running Linux \>= b4feb75e4c283dc8b20a0eee11079b196e41a490, \< 3c459f027195d549068e51f12b2f87d73a95803b; \>= 587996f1a779966407951ef7d6b5dac0e7ecdc42, \< 18f908324379787b3a5f46d42fc581438fb4e865; \>= f35590ee26f5722bfe12cdff14396c4c057a8f74, \< cfe246b318106e1691bd6c9466c739e8559d25c2; \>= f35590ee26f5722bfe12cdff14396c4c057a8f74, \< e37a75bb866c29da954b51d0dd7670406246d9ee
- Anyone running Linux 6.19

## Description

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

fs/ntfs3: fix deadlock in ni\_read\_folio\_cmpr

Syzbot reported a task hung in ni\_readpage\_cmpr (now ni\_read\_folio\_cmpr).
This is caused by a lock inversion deadlock involving the inode mutex
(ni\_lock) and page locks.

Scenario:
1. Task A enters ntfs\_read\_folio() for page X. It acquires ni\_lock.
2. Task A calls ni\_read\_folio\_cmpr(), which attempts to lock all pages in
   the compressed frame (including page Y).
3. Concurrently, Task B (e.g., via readahead) has locked page Y and
   calls ntfs\_read\_folio().
4. Task B waits for ni\_lock (held by A).
5. Task A waits for page Y lock (held by B).
   -\> DEADLOCK.

The fix is to restructure locking: do not take ni\_lock in ntfs\_read\_folio().
Instead, acquire ni\_lock inside ni\_read\_folio\_cmpr() ONLY AFTER all required
page locks for the frame have been successfully acquired. This restores the
correct lock ordering (Page Lock -\> ni\_lock) consistent with VFS.

\[almaz.alexandrovich@paragon-software.com: ni\_readpage\_cmpr was renamed to ni\_read\_folio\_cmpr\]

## Affected and fixed versions

- Linux: \>= b4feb75e4c283dc8b20a0eee11079b196e41a490, \< 3c459f027195d549068e51f12b2f87d73a95803b; \>= 587996f1a779966407951ef7d6b5dac0e7ecdc42, \< 18f908324379787b3a5f46d42fc581438fb4e865; \>= f35590ee26f5722bfe12cdff14396c4c057a8f74, \< cfe246b318106e1691bd6c9466c739e8559d25c2; \>= f35590ee26f5722bfe12cdff14396c4c057a8f74, \< e37a75bb866c29da954b51d0dd7670406246d9ee (cvelist)
- Linux: 6.19 (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-71309. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71309.md
Affected: Linux >= b4feb75e4c283dc8b20a0eee11079b196e41a490, < 3c459f027195d549068e51f12b2f87d73a95803b; >= 587996f1a779966407951ef7d6b5dac0e7ecdc42, < 18f908324379787b3a5f46d42fc581438fb4e865; >= f35590ee26f5722bfe12cdff14396c4c057a8f74, < cfe246b318106e1691bd6c9466c739e8559d25c2; >= f35590ee26f5722bfe12cdf…
Fixed in: Linux 3c459f027195d549068e51f12b2f87d73a95803b, Linux 18f908324379787b3a5f46d42fc581438fb4e865

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= b4feb75e4c283dc8b20a0eee11079b196e41a490, \< 3c459f027195d549068e51f12b2f87d73a95803b; \>= 587996f1a779966407951ef7d6b5dac0e7ecdc42, \< 18f908324379787b3a5f46d42fc581438fb4e865; \>= f35590ee26f5722bfe12cdff14396c4c057a8f74, \< cfe246b318106e1691bd6c9466c739e8559d25c2; \>= f35590ee26f5722bfe12cdff14396c4c057a8f74, \< e37a75bb866c29da954b51d0dd7670406246d9ee; Linux 6.19.

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

Yes. Fixed in Linux 3c459f027195d549068e51f12b2f87d73a95803b, Linux 18f908324379787b3a5f46d42fc581438fb4e865. No fix listed yet: follow the vendor advisory.

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

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/cfe246b318106e1691bd6c9466c739e8559d25c2>
- patch: <https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee>
- other: <https://git.kernel.org/stable/c/3c459f027195d549068e51f12b2f87d73a95803b>
- other: <https://git.kernel.org/stable/c/18f908324379787b3a5f46d42fc581438fb4e865>

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

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