Skip to main content
Vulnerability Database/CVE-2026-98080

CVE-2026-98080: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98080 is a privilege escalation vulnerability in the Linux kernel affecting the btrfs filesystem component. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98080 Overview

CVE-2026-98080 is a vulnerability in the Linux kernel's btrfs filesystem. The flaw occurs during qgroup_account_snapshot() when quota groups are enabled. The kernel forces reloc root creation at an unsafe point, producing stale extent references. When delayed refs attempt to resolve those references, lookup_inline_extent_backref triggers a WARNING at fs/btrfs/extent-tree.c:879 and flips the filesystem to read-only.

The issue reproduces reliably with btrfs/252 xfstests when the filesystem is created using MKFS_OPTIONS="-O quota". Local workloads performing balance, snapshot creation, and quota accounting on the same filesystem can trigger the fault.

Critical Impact

Local users running balance or snapshot operations on quota-enabled btrfs volumes can force the filesystem into read-only state, causing a local denial of service.

Affected Products

  • Linux kernel btrfs filesystem with quota groups (qgroup) enabled
  • Mainline kernel builds prior to the fix commits referenced by kernel.org stable tree
  • Downstream distribution kernels that have not merged the stable backports

Discovery Timeline

  • 2026-09-25 - CVE-2026-98080 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98080

Vulnerability Analysis

The vulnerability is a kernel filesystem logic error [Kernel Vulnerability] in btrfs snapshot and quota accounting. qgroup_account_snapshot() unconditionally forces creation of a relocation (reloc) root. During balance operations that call btrfs_relocate_block_group() followed by create_pending_snapshot(), this forced creation leaves tree block backrefs that reference extents that have already been freed.

When __btrfs_run_delayed_refs() later attempts to update those backrefs, lookup_inline_extent_backref() cannot locate the extent item and emits a WARN_ON(). The transaction aborts with error -117 (EUCLEAN), and btrfs transitions the filesystem to read-only.

Debug output from the ref_verify mount option shows mismatched reference counts, with num_refs wrapping to 18446744073709551615 for root entries, confirming an underflow in reference accounting tied to the premature reloc root creation.

Root Cause

The root cause is unconditional reloc root creation inside qgroup_account_snapshot(). When a snapshot is created while a balance is relocating a block group, the forced reloc root path interacts incorrectly with delayed ref processing. Extent backrefs are recorded against roots that no longer own the underlying extents, breaking the extent-tree invariants enforced in lookup_inline_extent_backref.

The fix removes the forced reloc root creation in the qgroup snapshot accounting path. See kernel commits 203cbfb, b5d5ab5, c4c7876, and cacf358 for the resolution.

Attack Vector

The attack vector is local. A user or process with the ability to invoke btrfs ioctls, create snapshots, or trigger balance operations on a mounted btrfs filesystem with quota enabled can trigger the WARNING and force the filesystem read-only. No network path exists. The practical impact is local denial of service and workload interruption on multi-tenant systems that expose btrfs management operations.

The vulnerability affects stability rather than confidentiality or integrity, but filesystem RO-remount can cascade into service outages for databases, container runtimes, and build systems backed by btrfs volumes.

Detection Methods for CVE-2026-98080

Indicators of Compromise

  • Kernel ring buffer entries containing WARNING: fs/btrfs/extent-tree.c:879 at lookup_inline_extent_backref on btrfs mounts
  • BTRFS error ... extent item not found for insert messages followed by failed to run delayed ref for logical ... entries
  • Filesystems transitioning to read-only (BTRFS: forced readonly) during balance or snapshot workloads
  • Transaction abort errors with code -117 (EUCLEAN) in dmesg output

Detection Strategies

  • Monitor dmesg and /var/log/kern.log for btrfs WARNING and error strings tied to extent-tree.c and lookup_inline_extent_backref
  • Correlate btrfs balance ioctls (BTRFS_IOC_BALANCE) and snapshot ioctls (BTRFS_IOC_SNAP_CREATE_V2) with subsequent kernel warnings
  • Alert on filesystem state changes to read-only on hosts running btrfs with qgroup enabled (btrfs qgroup show <mount>)

Monitoring Recommendations

  • Forward kernel logs to a centralized logging platform and build alerts for the specific extent-tree.c:879 warning signature
  • Track btrfs filesystem usage and transaction abort counters on quota-enabled volumes
  • Audit scheduled balance and snapshot operations (for example, btrfs-balance.service, snapper, timeshift) on fleet hosts

How to Mitigate CVE-2026-98080

Immediate Actions Required

  • Apply the stable kernel update containing commits 203cbfb, b5d5ab5, c4c7876, or cacf358 from the upstream btrfs maintainer tree
  • Pause scheduled btrfs balance operations on quota-enabled filesystems until patched kernels are deployed
  • Restrict access to btrfs management ioctls to trusted administrative accounts

Patch Information

The fix removes the forced reloc root creation from qgroup_account_snapshot(). Patched sources are available from the upstream Linux stable tree: Kernel Git Commit 203cbfb, Kernel Git Commit b5d5ab5, Kernel Git Commit c4c7876, and Kernel Git Commit cacf358. Rebuild distribution kernels or install vendor-supplied updates that include these commits.

Workarounds

  • Disable btrfs quota groups on affected volumes using btrfs quota disable <mount> to avoid executing the vulnerable qgroup_account_snapshot() code path
  • Avoid running btrfs balance concurrently with snapshot creation on quota-enabled filesystems
  • Mount with ref_verify only for diagnostic captures, not production, since it increases overhead
bash
# Disable qgroup accounting on an affected btrfs mount as a temporary workaround
btrfs quota disable /mnt/data

# Verify running kernel version after patch deployment
uname -r

# Inspect kernel log for the vulnerable warning signature
dmesg | grep -E 'extent-tree.c:879|lookup_inline_extent_backref'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.