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-98091 Overview
CVE-2026-98091 affects the Linux kernel's btrfs filesystem, specifically the sprout device handling logic. When create_chunk() builds the first metadata chunk for a sprout filesystem, it attaches the new device to the transaction dev_update_list through device->post_commit_list. If the subsequent system chunk creation fails, btrfs_init_new_device() aborts the transaction and releases the device while the post_commit_list link remains attached. The result is a warning in btrfs_free_device() and a transaction list that references freed memory.
Critical Impact
A failed sprout device initialization can leave the btrfs transaction list pointing to freed memory, triggering a kernel warning and risking use-after-free conditions during later commit processing.
Affected Products
- Linux kernel (btrfs filesystem subsystem)
- Stable kernel branches referenced by commits 0ea6814b, 8b001df2, c93b3c43, and e9e7e37a
- Distributions shipping the affected btrfs code prior to backport of the fix
Discovery Timeline
- 2026-09-25 - CVE-2026-98091 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98091
Vulnerability Analysis
The defect lives in btrfs sprout filesystem handling, which allows a read-only seed device to be extended by a writable sprout device. During sprout initialization, btrfs_init_new_device() calls create_chunk() to allocate the first metadata chunk on the new device. That path adds the device to the transaction-wide dev_update_list via device->post_commit_list, so that device statistics and generation are flushed at commit time.
When create_chunk() succeeds for the metadata chunk but the follow-up system chunk allocation fails, the caller aborts the transaction. The error path then releases the device structure without first unlinking post_commit_list. The transaction retains a pointer to freed memory, and btrfs_free_device() emits a warning because the list head is still active. Any subsequent walk of dev_update_list operates on a dangling pointer.
Root Cause
The root cause is a missing cleanup step in the error-handling path of btrfs_init_new_device(). Linked-list membership and object lifetime were not synchronized. The fix detaches the device from dev_update_list while holding chunk_mutex before freeing it, closing the window where freed memory remains reachable from transaction state.
Attack Vector
Triggering the condition requires local privileges to add a device to a mounted btrfs filesystem configured with a seed device. An attacker, or a fault-injection scenario, that forces system chunk creation to fail during btrfs_init_new_device() can reach the vulnerable error path. The practical outcome is a kernel warning and potential use-after-free in list traversal, which can lead to denial of service or memory corruption on affected kernels.
No verified exploit code is available for CVE-2026-98091. Refer to the upstream patches (Kernel Commit 0ea6814b, Kernel Commit 8b001df2, Kernel Commit c93b3c43, and Kernel Commit e9e7e37a) for the exact source changes.
Detection Methods for CVE-2026-98091
Indicators of Compromise
- Kernel warnings originating from btrfs_free_device() referencing an active post_commit_list.
- dmesg entries showing transaction abort messages during btrfs device add operations against seed or sprout filesystems.
- Kernel oops or general protection faults during btrfs transaction commit that follow a failed device-add attempt.
Detection Strategies
- Inventory kernel versions across Linux endpoints and servers and compare them against the fixed stable commits.
- Monitor system logs for btrfs transaction abort events correlated with device-add syscalls from non-root or automation workflows.
- Flag hosts that mount btrfs seed devices and allow dynamic addition of sprout devices as higher-risk assets requiring prioritized patching.
Monitoring Recommendations
- Forward kernel ring-buffer and journald logs to a centralized analytics backend for pattern matching on btrfs warnings.
- Alert on repeated btrfs_init_new_device failures, which may indicate attempted exploitation or environmental fault injection.
- Baseline normal btrfs administrative activity so that unexpected BTRFS_IOC_ADD_DEV ioctl calls stand out in audit telemetry.
How to Mitigate CVE-2026-98091
Immediate Actions Required
- Identify systems running btrfs with seed or sprout device configurations and prioritize them for patching.
- Apply the stable kernel update that includes the four referenced btrfs commits as soon as vendor packages are available.
- Restrict CAP_SYS_ADMIN and limit which accounts can issue btrfs device add operations against production filesystems.
Patch Information
Upstream fixes are available in the Linux stable tree under commits 0ea6814b, 8b001df2, c93b3c43, and e9e7e37a. The patch detaches the sprout device from dev_update_list while holding chunk_mutex before releasing the device structure. Distributions typically backport the change through their standard kernel security update channels.
Workarounds
- Avoid using btrfs seed and sprout functionality on affected kernels until the patch is applied.
- Mount seed-based btrfs filesystems read-only where feasible to prevent sprout device creation.
- Constrain administrative tooling and container runtimes so that only trusted operators can execute btrfs device add against affected hosts.
# Verify running kernel version and btrfs tooling
uname -r
btrfs --version
# Check for mounted btrfs seed filesystems
btrfs filesystem show
# After patching, confirm the fix is present in the stable tree
git log --oneline fs/btrfs/volumes.c | grep -E '0ea6814b|8b001df2|c93b3c43|e9e7e37a'
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

