btrfs: fix reloc root cleanup in merge_reloc_roots()
Historical advisory recorded 23 Oct 2026 15:48:27 UTC. Read the latest advisory.
cve-program · CVE-2026-93798
PublishedIn 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-93798 · CVE overview and exploitation status
cve-program · CVE-2026-93798
- 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
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.