{"id":"CVE-2026-139257","summary":"ntfs: fix NULL dereference on index allocation open failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix NULL dereference on index allocation open failure\n\nntfs_index_lookup() returns -ENOENT when ntfs_ia_open() fails to open the\nindex allocation. This error path leaves icx-\u003eib unset, unlike a missing\nkey in an otherwise valid index, which returns an insertion context.\n\nntfs_ie_add() treats -ENOENT as a valid insertion position and dereferences\nicx-\u003eib when the lookup is not in the index root. A corrupt $I30 bitmap\nattribute can therefore cause a NULL pointer dereference when adding a\ndirectory entry.\n\nReturn -EIO for index allocation open failures so insertion aborts through\nthe existing error path. Keep -ENOENT for genuinely missing keys and\ndocument that other errors leave no valid index entry.","modified":"2026-11-30T15:00:19.037369972Z","published":"2026-11-30T13:33:04.428Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139257.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/34441ba500df3d1ada339651f1cdbbee1562a4cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9365c4a1357e2a5d7f1aff140429028ad292161f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139257.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139257"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0"},{"fixed":"34441ba500df3d1ada339651f1cdbbee1562a4cd"},{"fixed":"9365c4a1357e2a5d7f1aff140429028ad292161f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139257.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.1.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139257.json"}}],"schema_version":"1.9.2"}