{"id":"CVE-2026-143124","state":"PUBLISHED","title":"ntfs: open the index allocation before reading or writing an index block","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: open the index allocation before reading or writing an index block\n\nntfs_ib_write() and ntfs_ib_read() use icx->ia_ni without checking it.\nntfs_ir_reparent() only opens the index allocation through\nntfs_ia_add() when the root is a small index. For a root that is already\nmarked as a large index it calls ntfs_ib_write() directly.\n\nThe lookup does not open the index allocation either when it ends in the\nroot. If the last entry of the root has no child node, ia_ni is still\nNULL when the root has to be moved into an index block, and the write\ndereferences it:\n\n  Oops: general protection fault, KASAN: null-ptr-deref in range\n        [0x0000000000000128-0x000000000000012f]\n  RIP: 0010:ntfs_inode_attr_pwrite+0x52/0x1600\n   ntfs_ir_make_space\n   ntfs_ie_add\n   ntfs_index_add_filename\n   __ntfs_link\n   ntfs_link\n   vfs_link\n\nA single byte of an image from mkntfs is enough. In a directory that has\none empty index block, clear INDEX_ENTRY_NODE (flags 3 -> 2) of the last\nentry of the $INDEX_ROOT and link() a file into the directory.\n\nCommit 9365c4a1357e (\"ntfs: fix NULL dereference on index allocation open failure\")\ncovers the case where ntfs_ia_open() fails in the lookup. Here it was\nnever tried. Open the index allocation on demand in both\nhelpers and fail with -EIO if that does not work.\n\nntfs_ia_open() also succeeds for a directory that has no\n$INDEX_ALLOCATION attribute. The inode it returns is then an empty resident\nstub that does not describe an index allocation, so reject that case too.","publishedAt":"2026-12-03T09:19:34.726Z","updatedAt":"2026-12-03T09:19:34.726Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","status":"affected","lessThan":"786519919170e10f54b3e8b0fca3c60b88fc4f4d","versionType":"git"},{"version":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","status":"affected","lessThan":"bada7bbb11aaa6feba8904cf38ff833453f5b5d9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/index.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/index.c"]}],"references":["https://git.kernel.org/stable/c/786519919170e10f54b3e8b0fca3c60b88fc4f4d","https://git.kernel.org/stable/c/bada7bbb11aaa6feba8904cf38ff833453f5b5d9"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143124.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143124","state":"PUBLISHED","datePublished":"2026-12-03T09:19:34.726Z","dateUpdated":"2026-12-03T09:19:34.726Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.351Z"},"containers":{"cna":{"title":"ntfs: open the index allocation before reading or writing an index block","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: open the index allocation before reading or writing an index block\n\nntfs_ib_write() and ntfs_ib_read() use icx->ia_ni without checking it.\nntfs_ir_reparent() only opens the index allocation through\nntfs_ia_add() when the root is a small index. For a root that is already\nmarked as a large index it calls ntfs_ib_write() directly.\n\nThe lookup does not open the index allocation either when it ends in the\nroot. If the last entry of the root has no child node, ia_ni is still\nNULL when the root has to be moved into an index block, and the write\ndereferences it:\n\n  Oops: general protection fault, KASAN: null-ptr-deref in range\n        [0x0000000000000128-0x000000000000012f]\n  RIP: 0010:ntfs_inode_attr_pwrite+0x52/0x1600\n   ntfs_ir_make_space\n   ntfs_ie_add\n   ntfs_index_add_filename\n   __ntfs_link\n   ntfs_link\n   vfs_link\n\nA single byte of an image from mkntfs is enough. In a directory that has\none empty index block, clear INDEX_ENTRY_NODE (flags 3 -> 2) of the last\nentry of the $INDEX_ROOT and link() a file into the directory.\n\nCommit 9365c4a1357e (\"ntfs: fix NULL dereference on index allocation open failure\")\ncovers the case where ntfs_ia_open() fails in the lookup. Here it was\nnever tried. Open the index allocation on demand in both\nhelpers and fail with -EIO if that does not work.\n\nntfs_ia_open() also succeeds for a directory that has no\n$INDEX_ALLOCATION attribute. The inode it returns is then an empty resident\nstub that does not describe an index allocation, so reject that case too."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","status":"affected","lessThan":"786519919170e10f54b3e8b0fca3c60b88fc4f4d","versionType":"git"},{"version":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","status":"affected","lessThan":"bada7bbb11aaa6feba8904cf38ff833453f5b5d9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/index.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/index.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/786519919170e10f54b3e8b0fca3c60b88fc4f4d"},{"url":"https://git.kernel.org/stable/c/bada7bbb11aaa6feba8904cf38ff833453f5b5d9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:34.726Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}