# CVE-2026-142914: btrfs: fix dangling nodes in tree-mod-log after error in btrfs\_tree\_mod\_log\_insert\_root()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:56.133Z
- **Modified:** 2026-12-03T04:18:31.387Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who can trigger the error path in the Linux kernel's btrfs tree-mod-log can cause use-after-free bugs by leaving freed nodes linked in the rbtree.

## Who should check

- Anyone running Linux \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< ece924917ba5d9b76fc27382d3cb958b7dcf24f3; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 649887e68f913af415cd7a681f2c0c27073dea67; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< cbbee43ed8aec90bdd8967b893fe3f33c991a485; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< f5111f6f16696983595fb25b3e62fce06f6feb02; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 057e3c350a9185df598c88b4081168ed047c9247; 3939448a3adb1a157d4b01ca9082b6a19b6c4a34; fc2345d56d07227350981e4528a9dc9ca7f1b570; \>= 3.12.14, \< 3.13; \>= 3.13.7, \< 3.14
- Anyone running Linux 3.14

## 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.

## Affected and fixed versions

- Linux: \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< ece924917ba5d9b76fc27382d3cb958b7dcf24f3; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 649887e68f913af415cd7a681f2c0c27073dea67; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< cbbee43ed8aec90bdd8967b893fe3f33c991a485; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< f5111f6f16696983595fb25b3e62fce06f6feb02; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 057e3c350a9185df598c88b4081168ed047c9247; 3939448a3adb1a157d4b01ca9082b6a19b6c4a34; fc2345d56d07227350981e4528a9dc9ca7f1b570; \>= 3.12.14, \< 3.13; \>= 3.13.7, \< 3.14 (cvelist)
- Linux: 3.14 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 3.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142914. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142914.md
Affected: Linux >= 5de865eebb8330eee19c37b31fb6f315a09d4273, < 38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6; >= 5de865eebb8330eee19c37b31fb6f315a09d4273, < ece924917ba5d9b76fc27382d3cb958b7dcf24f3; >= 5de865eebb8330eee19c37b31fb6f315a09d4273, < 649887e68f913af415cd7a681f2c0c27073dea67; >= 5de865eebb8330eee19c37b…
Fixed in: Linux 38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6, Linux 649887e68f913af415cd7a681f2c0c27073dea67, Linux 057e3c350a9185df598c88b4081168ed047c9247, Linux 3.13, Linux 3.14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142914 being exploited?

There is no confirmed exploitation: CVE-2026-142914 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142914?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142914?

Linux \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< ece924917ba5d9b76fc27382d3cb958b7dcf24f3; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 649887e68f913af415cd7a681f2c0c27073dea67; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< cbbee43ed8aec90bdd8967b893fe3f33c991a485; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< f5111f6f16696983595fb25b3e62fce06f6feb02; \>= 5de865eebb8330eee19c37b31fb6f315a09d4273, \< 057e3c350a9185df598c88b4081168ed047c9247; 3939448a3adb1a157d4b01ca9082b6a19b6c4a34; fc2345d56d07227350981e4528a9dc9ca7f1b570; \>= 3.12.14, \< 3.13; \>= 3.13.7, \< 3.14; Linux 3.14.

### Is there a fix for CVE-2026-142914?

Yes. Fixed in Linux 38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6, Linux 649887e68f913af415cd7a681f2c0c27073dea67, Linux 057e3c350a9185df598c88b4081168ed047c9247, Linux 3.13, Linux 3.14. Upgrade Linux to 3.14 or later.

### How do I check if I'm affected by CVE-2026-142914?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/38b9f8ad50bd12d3c3cdd8ef78203eafabc4dab6>
- other: <https://git.kernel.org/stable/c/ece924917ba5d9b76fc27382d3cb958b7dcf24f3>
- other: <https://git.kernel.org/stable/c/649887e68f913af415cd7a681f2c0c27073dea67>
- other: <https://git.kernel.org/stable/c/cbbee43ed8aec90bdd8967b893fe3f33c991a485>
- other: <https://git.kernel.org/stable/c/f5111f6f16696983595fb25b3e62fce06f6feb02>
- other: <https://git.kernel.org/stable/c/057e3c350a9185df598c88b4081168ed047c9247>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142914>

HTML: <https://flawdb.com/CVE-2026-142914> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142914>
