{"id":"CVE-2026-142914","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:\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.","modified":"2026-12-03T05:00:21.627876295Z","published":"2026-12-03T03:25:56.133Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142914.json","cna_assigner":"Linux"},"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"}],"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"},{"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"}]}],"versions":["v3.12.74","v3.12.73","v3.12.72","v3.12.71","v3.12.70","v3.12.69","v3.12.68","v3.12.67","v3.12.66","v3.12.65","v3.12.64","v3.12.63","v3.12.62","v3.12.61","v3.12.60","v3.12.59","v3.12.58","v3.12.57","v3.12.56","v3.12.55","v3.12.54","v3.12.53","v3.12.52","v3.12.51","v3.12.50","v3.12.49","v3.12.48","v3.12.47","v3.12.46","v3.12.45","v3.12.44","v3.12.43","v3.12.42","v3.12.41","v3.12.40","v3.12.39","v3.12.38","v3.12.37","v3.12.36","v3.12.35","v3.12.34","v3.12.33","v3.12.32","v3.12.31","v3.12.30","v3.12.29","v3.12.28","v3.12.27","v3.12.26","v3.12.25","v3.12.24","v3.12.23","v3.12.22","v3.12.21","v3.12.20","v3.12.19","v3.12.18","v3.12.17","v3.12.16","v3.12.15","v3.12.14","v3.13.11","v3.13.10","v3.13.9","v3.13.8","v3.13.7"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142914.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}