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.
Published: 2026-09-24
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Race condition in Btrfs that can cause kernel crashes or data corruption
Action: Patch Kernel
AI Analysis

Impact

A flaw in the Btrfs filesystem’s merge_reloc_roots function resets the reloc_root pointer without the required memory barriers, potentially leaving concurrent kernel threads with stale or inconsistent data. This unsynchronized access can trigger a race condition that may lead to a kernel panic or corruption of filesystem metadata and data. The issue also improperly clears a flag that marks a reloc tree as dead when it should not be, further compromising data integrity.

Affected Systems

Any Linux kernel that includes the Btrfs filesystem code—for example, mainstream Linux distributions—may be affected by this defect.

Risk and Exploitability

The vulnerability is scored 7.8 on CVSS, indicating high severity, while the EPSS score is less than 1%, suggesting a low probability of exploitation. It is not listed in the CISA KEV catalog. The most likely attack vector is a local privileged user or process that can perform operations on a Btrfs volume (such as mounting or writing to it). A local attacker could potentially trigger the race condition to fault the kernel or corrupt data, but no public exploit is known, so timely patching is advised.

Generated by OpenCVE AI on October 1, 2026 at 20:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that contains the merge_reloc_roots fix, referencing the commit hashes provided in the advisory.
  • Reboot the system after updating so the patched kernel is loaded.
  • Back up all Btrfs volumes or run a full scrub before and after applying the update to protect against any residual data corruption.

Generated by OpenCVE AI on October 1, 2026 at 20:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Tue, 29 Sep 2026 13:15:00 +0000


Fri, 25 Sep 2026 11:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Fri, 25 Sep 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title btrfs: fix reloc root cleanup in merge_reloc_roots()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-03T10:57:32.550Z

Reserved: 2026-09-18T17:59:28.789Z

Link: CVE-2026-93798

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T17:17:12.607

Modified: 2026-10-03T11:17:49.337

Link: CVE-2026-93798

cve-icon Redhat

Severity : Low

Publid Date: 2026-09-24T00:00:00Z

Links: CVE-2026-93798 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T20:15:12Z

Weaknesses
  • CWE-366

    Race Condition within a Thread