{"id":"CVE-2026-142892","summary":"ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks\n\nntfs_readdir() holds ni_lock while calling ntfs_read_hdr(), which calls\ndir_emit() to copy directory entries to userspace.  If the user buffer\ntriggers a page fault, the fault handler may need mmap_lock or\nmapping-\u003einvalidate_lock, creating lock-order inversions with paths\nthat acquire those locks before ni_lock (e.g. ntfs_fallocate, mmap).\n\nFix by releasing ni_lock before calling ntfs_read_hdr():\n\n- For non-root index nodes, indx_read_ra() returns data in a kmalloc'd\n  buffer (node-\u003eindex) that remains valid after ni_unlock.\n\n- For the root index header, the data lives in the main MFT record\n  whose lifetime is bound to the inode.  i_rwsem shared prevents\n  concurrent directory modifications, so it is safe to access after\n  ni_unlock.","modified":"2026-12-03T05:01:17.245464267Z","published":"2026-12-03T03:25:44.197Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142892.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7298c7d60108c72400f4cdd028ae481265cd080a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142892.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142892"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c"},{"fixed":"7298c7d60108c72400f4cdd028ae481265cd080a"},{"fixed":"7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142892.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142892.json"}}],"schema_version":"1.9.2"}