{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0"
            },
            {
              "fixed": "786519919170e10f54b3e8b0fca3c60b88fc4f4d"
            },
            {
              "fixed": "bada7bbb11aaa6feba8904cf38ff833453f5b5d9"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.1.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143124.json"
  },
  "details": "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-\u003eia_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 -\u003e 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.",
  "id": "CVE-2026-143124",
  "modified": "2026-12-03T10:45:47.125070275Z",
  "published": "2026-12-03T09:19:34.726Z",
  "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/786519919170e10f54b3e8b0fca3c60b88fc4f4d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bada7bbb11aaa6feba8904cf38ff833453f5b5d9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143124.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143124"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ntfs: open the index allocation before reading or writing an index block"
}