CVE-2026-142892: ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks

Published Dec 3, 2026
·
Updated

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

ntfs3: release nilock before diremit in ntfsreaddir to fix deadlocks

ntfsreaddir() holds nilock while calling ntfsreadhdr(), which calls diremit() to copy directory entries to userspace. If the user buffer triggers a page fault, the fault handler may need mmaplock or mapping->invalidatelock, creating lock-order inversions with paths that acquire those locks before nilock (e.g. ntfsfallocate, mmap).

Fix by releasing nilock before calling ntfsreadhdr():

- For non-root index nodes, indxreadra() returns data in a kmalloc'd buffer (node->index) that remains valid after niunlock.

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

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.2.0<7.3.6
7.3.6
debian/linux<7.3.6-1
7.3.6-1
debian/linux
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  3. Compensating control

    In ntfs3, release ni_lock before calling dir_emit() in ntfs_readdir().

Event History

Dec 3, 2026
CVE Published
via MITRE·03:25 AM
Data Sourced
via MITRE·03:25 AM
Description
Data Sourced
via OSV·03:25 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger the deadlock?

A process must read an NTFS3 directory such that copying directory entries to its userspace buffer causes a page fault. The fault-handling path must then contend for mmap_lock or mapping->invalidate_lock while ni_lock is held, creating a lock-order inversion with NTFS3 paths such as fallocate or mmap.

2

Which systems are exposed?

Systems using the Linux kernel NTFS3 filesystem driver are exposed when they access NTFS directories. The issue is specifically in directory reads through ntfs_readdir().

3

Is there a workaround if an updated kernel cannot be deployed immediately?

The provided information does not identify a configuration-only workaround. Reducing or avoiding concurrent NTFS3 directory reads with NTFS3 mmap or fallocate activity may reduce exposure to the described lock inversion, but this is not stated as a complete mitigation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203