cvelo
P2 · HighCVSS 7.0EPSS 0.3%

btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()

  • CVE-2026-142914
  • GHSA-w29m-9v9p-fxhq
  • EUVD-2026-142323

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root() If in btrfs_tree_mod_log_insert_root() there is an error in the call to tree_mod_log_insert() (the only possible error is -EEXIST, which means we have a bug or some memory corruption maybe) we free all the nodes in the 'tm_list' array but we don't remove them from the tree-mod-log rbtree, which can result in use-after-free bugs later. So make sure we remove the nodes from the rbtree before freeing them after an error.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 3.12.14 to before 3.13update to 3.13 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 3.12.14 to before 3.133.13
    from 3.13.7 to before 3.14none stated
    3.14none stated
    before 3.14: not affectednone stated
    from 6.1.193 up to 6.1.*: not affectednone stated
    from 6.6.163 up to 6.6.*: not affectednone stated
    from 6.12.119 up to 6.12.*: not affectednone stated
    from 6.18.65 up to 6.18.*: not affectednone stated

    and 2 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.