CVE-2025-71309
MEDIUM 5.5CVSS 3.1fs/ntfs3: fix deadlock in ni_read_folio_cmpr
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:
- Task A enters ntfs_read_folio() for page X. It acquires ni_lock.
- Task A calls ni_read_folio_cmpr(), which attempts to lock all pages in
the compressed frame (including page Y). - Concurrently, Task B (e.g., via readahead) has locked page Y and
calls ntfs_read_folio(). - Task B waits for ni_lock (held by A).
- 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]
- Published
- 27 May 2026
- Last modified
- 23 Nov 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Modified
- Weakness
- CWE-667
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.19, < 6.19.4 | 6.19.4 |
| CVE List | Linux | Linux | >= b4feb75e4c283dc8b20a0eee11079b196e41a490, < 3c459f027195d549068e51f12b2f87d73a95803b; >= 587996f1a779966407951ef7d6b5dac0e7ecdc42, < 18f908324379787b3a5f46d42fc581438fb4e865; >= f35590ee26f5722bfe12cdff14396c4c057a8f74, < cfe246b318106e1691bd6c9466c739e8559d25c2; >= f35590ee26f5722bfe12cdff14396c4c057a8f74, < e37a75bb866c29da954b51d0dd7670406246d9ee | 3c459f027195d549068e51f12b2f87d73a95803b, 18f908324379787b3a5f46d42fc581438fb4e865, cfe246b318106e1691bd6c9466c739e8559d25c2, e37a75bb866c29da954b51d0dd7670406246d9ee |
| CVE List | Linux | Linux | = 6.19 |
References
- https://git.kernel.org/stable/c/18f908324379787b3a5f46d42fc581438fb4e865
- https://git.kernel.org/stable/c/3c459f027195d549068e51f12b2f87d73a95803b
- https://git.kernel.org/stable/c/cfe246b318106e1691bd6c9466c739e8559d25c2 · Patch
- https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee · Patch
History
- 25 Nov 2026 20:33 UTC · CVE List: first stored (published 27 May 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 27 May 2026)