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-93255 Overview
CVE-2026-93255 is a race condition in the Linux kernel's btrfs filesystem code. The flaw affects how the EXTENT_BUFFER_READING flag is cleared relative to the extent buffer reference count lock (refs_lock). A narrow timing window exists between the read endio path and the unmount path in invalidate_and_check_btree_folios(). When this window is hit, the kernel emits false warnings about extent buffers still being held, along with messages such as unable to release extent buffer. The issue was observed during the btrfs/298 fstest and surfaces as spurious kernel warnings during filesystem unmount operations.
Critical Impact
The race produces false-positive kernel warnings and log noise during btrfs unmount but does not corrupt data or grant privilege escalation.
Affected Products
- Linux kernel (btrfs filesystem subsystem)
- Kernel builds prior to the commits referenced in the stable tree fix
- Distributions shipping affected mainline kernel versions
Discovery Timeline
- 2026-09-24 - CVE-2026-93255 published to NVD
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-93255
Vulnerability Analysis
The defect lives inside the btrfs extent buffer lifecycle. On the read completion path, end_bbio_meta_read() clears the EXTENT_BUFFER_READING flag and then calls free_extent_buffer() to drop its reference. Concurrently, invalidate_and_check_btree_folios() during unmount waits for in-flight reads via wait_on_bit_io(), then checks whether the extent buffer refcount exceeds the expected value of two.
Between the moment clear_extent_buffer_reading() releases the bit and the moment free_extent_buffer() decrements the refcount, the unmount thread can observe the extent buffer with three references held: itself, the btree inode, and the reader that has not yet released its reference. The check in invalidate_and_check_btree_folios() therefore fires a WARNING and emits a BTRFS warning (device sdd): unable to release extent buffer message even though no real leak exists.
Root Cause
The root cause is that clearing the EXTENT_BUFFER_READING flag and decrementing the reference count are not performed inside the same critical section protected by refs_lock. This permits an interleaving where a reader has already signalled completion but has not yet released its reference.
Attack Vector
The vulnerability is not remotely reachable and does not provide an exploitation primitive. It requires concurrent btrfs read activity and a filesystem unmount on the local system. The observable effect is kernel log noise and a WARN splat, which can mislead operators or trigger panic-on-warn configurations.
The fix introduces a helper named free_extent_buffer_clear_reading() that holds refs_lock across both the flag clear and the refcount decrement, closing the race window. See the kernel git commit for the applied patch.
Detection Methods for CVE-2026-93255
Indicators of Compromise
- Kernel log entries containing WARNING: ... at invalidate_and_check_btree_folios+ originating from the btrfs module.
- BTRFS warning (device <dev>): unable to release extent buffer <bytenr> owner <n> gen <n> refs <n> flags <n> messages during unmount.
- Repeated warnings correlated with btrfs mount, unmount, or snapshot churn under I/O load.
Detection Strategies
- Parse dmesg and /var/log/kern.log for the invalidate_and_check_btree_folios symbol in warning backtraces.
- Monitor system telemetry for kernel WARN events against the btrfs module across fleet hosts.
- Correlate warning timestamps with filesystem unmount, container teardown, or snapshot deletion events.
Monitoring Recommendations
- Forward kernel ring buffer events to a central logging pipeline for pattern matching on btrfs warning strings.
- Alert on hosts configured with panic_on_warn=1 that run affected btrfs kernels, because the false warning will crash the host.
- Track kernel version inventory to identify systems still running pre-patch builds.
How to Mitigate CVE-2026-93255
Immediate Actions Required
- Inventory Linux hosts running btrfs root or data volumes and record their kernel versions.
- Disable kernel.panic_on_warn on affected systems until patched to prevent spurious crashes.
- Schedule kernel updates for hosts running affected mainline or distribution kernels that have not yet absorbed the stable backport.
Patch Information
The upstream fix is tracked in two stable tree commits: 2073f3d97b0c and 690c2accacb1. The patches introduce free_extent_buffer_clear_reading() and require invalidate_and_check_btree_folios() to hold refs_lock before reading the refcount. Apply distribution kernel updates once they incorporate these commits.
Workarounds
- Clear kernel.panic_on_warn via sysctl -w kernel.panic_on_warn=0 to prevent the false warning from halting the system.
- Avoid rapid mount and unmount cycles on btrfs volumes under heavy metadata read load until the patched kernel is deployed.
- Where feasible, migrate workloads to a filesystem not affected by this race condition until the host is updated.
# Verify running kernel version and btrfs module details
uname -r
modinfo btrfs | grep -E '^(filename|version|srcversion):'
# Temporarily disable panic-on-warn to avoid crashes from the false WARN
sysctl -w kernel.panic_on_warn=0
# Monitor for the false-alert signature
dmesg -T | grep -E 'invalidate_and_check_btree_folios|unable to release extent buffer'
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

