CVE-2026-143124

Source
https://cve.org/CVERecord?id=CVE-2026-143124
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143124.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143124
Downstream
Published
2026-12-03T09:19:34Z
Modified
2026-12-03T11:01:24Z
Summary
ntfs: open the index allocation before reading or writing an index block
Details

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

ntfs: open the index allocation before reading or writing an index block

ntfs_ib_write() and ntfs_ib_read() use icx->ia_ni without checking it. ntfs_ir_reparent() only opens the index allocation through ntfs_ia_add() when the root is a small index. For a root that is already marked as a large index it calls ntfs_ib_write() directly.

The lookup does not open the index allocation either when it ends in the root. If the last entry of the root has no child node, ia_ni is still NULL when the root has to be moved into an index block, and the write dereferences it:

Oops: general protection fault, KASAN: null-ptr-deref in range [0x0000000000000128-0x000000000000012f] RIP: 0010:ntfs_inode_attr_pwrite+0x52/0x1600 ntfs_ir_make_space ntfs_ie_add ntfs_index_add_filename __ntfs_link ntfs_link vfs_link

A single byte of an image from mkntfs is enough. In a directory that has one empty index block, clear INDEX_ENTRY_NODE (flags 3 -> 2) of the last entry of the $INDEX_ROOT and link() a file into the directory.

Commit 9365c4a1357e ("ntfs: fix NULL dereference on index allocation open failure") covers the case where ntfs_ia_open() fails in the lookup. Here it was never tried. Open the index allocation on demand in both helpers and fail with -EIO if that does not work.

ntfs_ia_open() also succeeds for a directory that has no $INDEX_ALLOCATION attribute. The inode it returns is then an empty resident stub that does not describe an index allocation, so reject that case too.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143124.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0
Fixed
786519919170e10f54b3e8b0fca3c60b88fc4f4d
Fixed
bada7bbb11aaa6feba8904cf38ff833453f5b5d9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143124.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143124.json"