CVE-2026-142914
btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()
- Severity
- high CVSS 7.0 (v3.1)
- Affects
- Linux
- Published
- 3 December 2026 by Linux
- First seen on our lists
- 3 December 2026
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.