{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5de865eebb8330eee19c37b31fb6f315a09d4273"
            },
            {
              "fixed": "38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6"
            },
            {
              "fixed": "ece924917ba5d9b76fc27382d3cb958b7dcf24f3"
            },
            {
              "fixed": "649887e68f913af415cd7a681f2c0c27073dea67"
            },
            {
              "fixed": "cbbee43ed8aec90bdd8967b893fe3f33c991a485"
            },
            {
              "fixed": "f5111f6f16696983595fb25b3e62fce06f6feb02"
            },
            {
              "fixed": "057e3c350a9185df598c88b4081168ed047c9247"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3939448a3adb1a157d4b01ca9082b6a19b6c4a34"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "fc2345d56d07227350981e4528a9dc9ca7f1b570"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.12.14"
            },
            {
              "fixed": "3.13"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.13.7"
            },
            {
              "fixed": "3.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.14.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142914.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()\n\nIf in btrfs_tree_mod_log_insert_root() there is an error in the call to\ntree_mod_log_insert() (the only possible error is -EEXIST, which means we\nhave a bug or some memory corruption maybe) we free all the nodes in the\n'tm_list' array but we don't remove them from the tree-mod-log rbtree,\nwhich can result in use-after-free bugs later.\n\nSo make sure we remove the nodes from the rbtree before freeing them after\nan error.",
  "id": "CVE-2026-142914",
  "modified": "2026-12-03T04:46:07.116297077Z",
  "published": "2026-12-03T03:25:56.133Z",
  "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/057e3c350a9185df598c88b4081168ed047c9247"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/649887e68f913af415cd7a681f2c0c27073dea67"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cbbee43ed8aec90bdd8967b893fe3f33c991a485"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ece924917ba5d9b76fc27382d3cb958b7dcf24f3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f5111f6f16696983595fb25b3e62fce06f6feb02"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142914.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142914"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()"
}