# CVE-2026-93798: btrfs: fix reloc root cleanup in merge_reloc_roots()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-09-24T16:02:31.291Z
- Modified: 2026-10-03T11:17:49.337Z
- Assigned by: Linux

## Description

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

btrfs: fix reloc root cleanup in merge_reloc_roots()

If the root we got has zero root refs in its root item, we are resetting
the root's ->reloc_root without using barriers like we do everywhere else.
Sashiko complained about this while reviewing another patch, and it's
correct (see the Link tag below).

Also, we should not clear BTRFS_ROOT_DEAD_RELOC_TREE from the root unless
the root points to the reloc root we have.

Fix this by using clear_reloc_root(), which issues the memory barrier
after setting the root's ->reloc_root to NULL and before clearing the bit
BTRFS_ROOT_DEAD_RELOC_TREE from the root.

(As written by CVE List.)

## Affected

- Linux Linux: from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before 29531470b1bf1e8bd2df4941fe913106edbca615; from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before 415f8665a969d3c906e4fd7c90fcbb4b357886f6; from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before ee695a968aa73b1e67ccbf2133dc0e54381d32b2; from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before 0bc25f0a2d1b3e0a691431c4d7aef36afcd527c5; from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before ab48583aa9948205ff9a6470e23dbff74c565e24; from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before 63d6b1f04cd91c825329712aa526215ffa5d11ca; from 1dae7e0e58b484eaa43d530f211098fdeeb0f404 before b78fe9563e2d5ae47805f1e5dc722c91fd30e1f8; ee08663380ffd5a45a1c87580fbc305e8413c235; 33823378ff2b510fd7b566f25bb18438aeb9b23b; from 5.4.54 before 5.5; from 5.7.11 before 5.8; 5.8 (not affected: before 5.8; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/29531470b1bf1e8bd2df4941fe913106edbca615>
- <https://git.kernel.org/stable/c/415f8665a969d3c906e4fd7c90fcbb4b357886f6>
- <https://git.kernel.org/stable/c/ee695a968aa73b1e67ccbf2133dc0e54381d32b2>
- <https://git.kernel.org/stable/c/0bc25f0a2d1b3e0a691431c4d7aef36afcd527c5>
- <https://git.kernel.org/stable/c/ab48583aa9948205ff9a6470e23dbff74c565e24>
- <https://git.kernel.org/stable/c/63d6b1f04cd91c825329712aa526215ffa5d11ca>
- <https://git.kernel.org/stable/c/b78fe9563e2d5ae47805f1e5dc722c91fd30e1f8>

## Sources

- CVE List: [CVE-2026-93798](https://www.cve.org/CVERecord?id=CVE-2026-93798), CVE Terms of Use, modified 2026-10-03
- NVD: [CVE-2026-93798](https://nvd.nist.gov/vuln/detail/CVE-2026-93798), Public domain, modified 2026-10-03

---

Page: https://cve.day/CVE-2026-93798 · Whole record: https://cve.day/CVE-2026-93798.json · Rebuilt by cve.day 2026-11-25T22:59:40.829Z
