5.5
MEDIUM CVSS 3.1
CVE-2025-71309
fs/ntfs3: fix deadlock in ni_read_folio_cmpr
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. [[email protected]: ni_readpage_cmpr was renamed to ni_read_folio_cmpr]

INFO

Published Date :

May 27, 2026, 2:16 p.m.

Last Modified :

Nov. 23, 2026, 8:17 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-71309 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Fix a deadlock by restructuring locking to acquire locks in the correct order.
  • Acquire page locks before acquiring the inode mutex.
  • Do not take inode mutex in the initial read function.
  • Update the kernel to the patched version.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-71309 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-71309 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-71309 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-71309 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 23, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/71xxx/CVE-2025-71309.json">CVE-2025-71309</a>
    Added Reference https://git.kernel.org/stable/c/18f908324379787b3a5f46d42fc581438fb4e865
    Added Reference https://git.kernel.org/stable/c/3c459f027195d549068e51f12b2f87d73a95803b
    Added Reference https://git.kernel.org/stable/c/cfe246b318106e1691bd6c9466c739e8559d25c2
    Added Reference https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee
    Removed Reference https://git.kernel.org/stable/c/cfe246b318106e1691bd6c9466c739e8559d25c2
    Removed Reference https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee
    Removed Reference Type https://git.kernel.org/stable/c/cfe246b318106e1691bd6c9466c739e8559d25c2 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee Types: Patch
  • CVE Translated by [email protected]

    Oct. 14, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fs/ntfs3: corrige interbloqueo en ni_read_folio_cmpr Syzbot informó una tarea colgada en ni_readpage_cmpr (ahora ni_read_folio_cmpr). Esto es causado por un interbloqueo de inversión de bloqueo que involucra el mutex del inodo (ni_lock) y los bloqueos de página. Escenario: 1. La Tarea A entra en ntfs_read_folio() para la página X. Adquiere ni_lock. 2. La Tarea A llama a ni_read_folio_cmpr(), que intenta bloquear todas las páginas en el marco comprimido (incluida la página Y). 3. Concurrently, la Tarea B (p. ej., a través de readahead) ha bloqueado la página Y y llama a ntfs_read_folio(). 4. La Tarea B espera por ni_lock (retenido por A). 5. La Tarea A espera por el bloqueo de la página Y (retenido por B). -> INTERBLOQUEO. La solución es reestructurar el bloqueo: no tomar ni_lock en ntfs_read_folio(). En su lugar, adquirir ni_lock dentro de ni_read_folio_cmpr() SÓLO DESPUÉS de que todos los bloqueos de página requeridos para el marco hayan sido adquiridos exitosamente. Esto restaura el orden de bloqueo correcto (Bloqueo de Página -> ni_lock) consistente con VFS. [[email protected]: ni_readpage_cmpr fue renombrado a ni_read_folio_cmpr]
  • Initial Analysis by [email protected]

    Jun. 25, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-667
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.4
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/cfe246b318106e1691bd6c9466c739e8559d25c2 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f35590ee26f5722bfe12cdff14396c4c057a8f74', 'lessThan': 'cfe246b318106e1691bd6c9466c739e8559d25c2', 'versionType': 'git'}, {'status': 'affected', 'version': 'f35590ee26f5722bfe12cdff14396c4c057a8f74', 'lessThan': 'e37a75bb866c29da954b51d0dd7670406246d9ee', 'versionType': 'git'}], 'programFiles': ['fs/ntfs3/frecord.c', 'fs/ntfs3/inode.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.19.4', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/ntfs3/frecord.c', 'fs/ntfs3/inode.c'], 'defaultStatus': 'affected'}]
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 27, 2026

    Action Type Old Value New Value
    Added 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. [[email protected]: ni_readpage_cmpr was renamed to ni_read_folio_cmpr]
    Added Reference https://git.kernel.org/stable/c/cfe246b318106e1691bd6c9466c739e8559d25c2
    Added Reference https://git.kernel.org/stable/c/e37a75bb866c29da954b51d0dd7670406246d9ee
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.