{"api_version":"1","generated_at":"2026-12-03T05:42:38+00:00","cve":"CVE-2026-142892","urls":{"html":"https://cve.report/CVE-2026-142892","api":"https://cve.report/api/cve/CVE-2026-142892.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142892","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142892"},"summary":{"title":"ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks","description":"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->invalidate_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->index) 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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:28","updated_at":"2026-12-03 04:18:28"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d","name":"https://git.kernel.org/stable/c/7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7298c7d60108c72400f4cdd028ae481265cd080a","name":"https://git.kernel.org/stable/c/7298c7d60108c72400f4cdd028ae481265cd080a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142892","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142892","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c 7298c7d60108c72400f4cdd028ae481265cd080a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c 7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ntfs3/dir.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7298c7d60108c72400f4cdd028ae481265cd080a","status":"affected","version":"d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c","versionType":"git"},{"lessThan":"7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d","status":"affected","version":"d62cf685d12e95cc0a4122c43cd9f0eb8bba0b4c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs3/dir.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.2"},{"lessThan":"7.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->invalidate_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->index) 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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:25:44.197Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7298c7d60108c72400f4cdd028ae481265cd080a"},{"url":"https://git.kernel.org/stable/c/7a5aa6c45072b54c8d97c5d54bbdf18aabf0ee6d"}],"title":"ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142892","datePublished":"2026-12-03T03:25:44.197Z","dateReserved":"2026-12-03T03:10:28.335Z","dateUpdated":"2026-12-03T03:25:44.197Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:28","lastModifiedDate":"2026-12-03 04:18:28","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142892","Ordinal":"1","Title":"ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix de","CVE":"CVE-2026-142892","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142892","Ordinal":"1","NoteData":"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->invalidate_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->index) 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.","Type":"Description","Title":"ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix de"}]}}}