# CVE-2026-89645: btrfs: drop recovered reloc root refs on recovery failure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2026-09-11T19:45:37.016Z
- **Modified:** 2026-10-30T13:20:23.993Z

## Who should check

- Anyone running Linux \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< f671ffc678e0247aad77126670cb28c766d6ab3d; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 7b8c6af17287899a5d00c70566831feac237d192; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 8a64baeb5bbb706b83d2235c1e39f5b77183817f; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 4d43107e807bcd92621106b07f5011411c6341a8; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 6d8ba4572922e336f0b59a80751b018e1e135164
- Anyone running Linux 5.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: drop recovered reloc root refs on recovery failure

During relocation recovery, each fs root gets a reference to its relocation
root. If loading or adding a later root fails, or if the first transaction
commit fails, btrfs\_recover\_relocation() jumps to out\_unset before
merge\_reloc\_roots() and clean\_dirty\_subvols().

put\_reloc\_control() drops the list-owned relocation root references, but it
does not clear fs\_root-\>reloc\_root or drop the references owned by those
pointers. Mount cleanup only drops them when BTRFS\_FS\_ERROR is set, so an
error such as -ENOMEM while processing a later root can leave references
behind.

Keep temporary references to the fs roots associated during recovery. On
failure, clear their reloc\_root pointers and drop the corresponding
references. Once the first transaction commit succeeds, drop only the
temporary fs root references and let the normal merge and cleanup paths
handle the relocation roots.

Fault injection on a pending-relocation image confirmed the cleanup gap.
With an injected first-commit failure, 25 fs roots had reloc\_root set with
fs\_error=0. With this fix, the same failure path drops that count to 0
before mount fails.

## Affected and fixed versions

- Linux: \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< f671ffc678e0247aad77126670cb28c766d6ab3d; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 7b8c6af17287899a5d00c70566831feac237d192; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 8a64baeb5bbb706b83d2235c1e39f5b77183817f; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 4d43107e807bcd92621106b07f5011411c6341a8; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 6d8ba4572922e336f0b59a80751b018e1e135164 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 6d8ba4572922e336f0b59a80751b018e1e135164 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-89645. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89645.md
Affected: Linux >= f44deb7442edf42abee6be25fca7e3e86061b4c9, < f671ffc678e0247aad77126670cb28c766d6ab3d; >= f44deb7442edf42abee6be25fca7e3e86061b4c9, < 7b8c6af17287899a5d00c70566831feac237d192; >= f44deb7442edf42abee6be25fca7e3e86061b4c9, < 2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd; >= f44deb7442edf42abee6be2…
Fixed in: Linux 7b8c6af17287899a5d00c70566831feac237d192, Linux 2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd, Linux 8a64baeb5bbb706b83d2235c1e39f5b77183817f, Linux 4d43107e807bcd92621106b07f5011411c6341a8, Linux 6d8ba4572922e336f0b59a80751b018e1e135164

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-89645 being exploited?

There is no confirmed exploitation: CVE-2026-89645 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< f671ffc678e0247aad77126670cb28c766d6ab3d; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 7b8c6af17287899a5d00c70566831feac237d192; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 8a64baeb5bbb706b83d2235c1e39f5b77183817f; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 4d43107e807bcd92621106b07f5011411c6341a8; \>= f44deb7442edf42abee6be25fca7e3e86061b4c9, \< 6d8ba4572922e336f0b59a80751b018e1e135164; Linux 5.7.

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

Yes. Fixed in Linux 7b8c6af17287899a5d00c70566831feac237d192, Linux 2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd, Linux 8a64baeb5bbb706b83d2235c1e39f5b77183817f, Linux 4d43107e807bcd92621106b07f5011411c6341a8, Linux 6d8ba4572922e336f0b59a80751b018e1e135164. Upgrade Linux to 6d8ba4572922e336f0b59a80751b018e1e135164 or later.

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

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/f671ffc678e0247aad77126670cb28c766d6ab3d>
- other: <https://git.kernel.org/stable/c/7b8c6af17287899a5d00c70566831feac237d192>
- other: <https://git.kernel.org/stable/c/2256d6dc5b88841a8a8b4fd9a9f04730705fb6fd>
- other: <https://git.kernel.org/stable/c/8a64baeb5bbb706b83d2235c1e39f5b77183817f>
- other: <https://git.kernel.org/stable/c/4d43107e807bcd92621106b07f5011411c6341a8>
- other: <https://git.kernel.org/stable/c/6d8ba4572922e336f0b59a80751b018e1e135164>

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

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