CVE-2026-142914

Source
https://cve.org/CVERecord?id=CVE-2026-142914
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142914.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142914
Published
2026-12-03T03:25:56Z
Modified
2026-12-03T05:00:21Z
Summary
btrfs: fix dangling nodes in tree-mod-log after error in btrfs_tree_mod_log_insert_root()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142914.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5de865eebb8330eee19c37b31fb6f315a09d4273
Fixed
38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6
Fixed
ece924917ba5d9b76fc27382d3cb958b7dcf24f3
Fixed
649887e68f913af415cd7a681f2c0c27073dea67
Fixed
cbbee43ed8aec90bdd8967b893fe3f33c991a485
Fixed
f5111f6f16696983595fb25b3e62fce06f6feb02
Show 1 more event Show fewer events
Fixed
057e3c350a9185df598c88b4081168ed047c9247
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3939448a3adb1a157d4b01ca9082b6a19b6c4a34
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fc2345d56d07227350981e4528a9dc9ca7f1b570

Affected versions

v3.*
v3.12.14
v3.12.15
v3.12.16
v3.12.17
v3.12.18
v3.12.19
v3.12.20
v3.12.21
v3.12.22
v3.12.23
v3.12.24
v3.12.25
v3.12.26
v3.12.27
v3.12.28
v3.12.29
v3.12.30
v3.12.31
v3.12.32
v3.12.33
v3.12.34
v3.12.35
v3.12.36
v3.12.37
v3.12.38
v3.12.39
v3.12.40
v3.12.41
v3.12.42
v3.12.43
v3.12.44
v3.12.45
v3.12.46
v3.12.47
v3.12.48
v3.12.49
v3.12.50
v3.12.51
v3.12.52
v3.12.53
v3.12.54
v3.12.55
v3.12.56
v3.12.57
v3.12.58
v3.12.59
v3.12.60
v3.12.61
v3.12.62
v3.12.63
v3.12.64
v3.12.65
v3.12.66
v3.12.67
v3.12.68
v3.12.69
v3.12.70
v3.12.71
v3.12.72
v3.12.73
v3.12.74
v3.13.10
v3.13.11
v3.13.7
v3.13.8
v3.13.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142914.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142914.json"