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-98090 Overview
CVE-2026-98090 is a use-after-free vulnerability in the Linux kernel's btrfs filesystem code. The flaw resides in btrfs_init_new_device(), which handles conversion of a seed device into a writable sprout device. The function switches the latest_dev and potentially s_bdev pointers from the seed to the new sprout device before creating the first writable chunks. When chunk creation or subsequent sprout setup fails, the error path releases the new device without restoring those pointers. A later call to btrfs_show_devname() then dereferences the freed latest_dev, triggering a kernel crash.
Critical Impact
Local users with permission to run btrfs device operations on seed filesystems can trigger a kernel crash through a use-after-free in btrfs_show_devname().
Affected Products
- Linux kernel (btrfs filesystem subsystem)
- Stable kernel branches referenced in the upstream commits 2ee5c4b, b79b4b2, e0b5461, and e127ac2
- Distributions shipping affected btrfs seed/sprout support
Discovery Timeline
- 2026-09-25 - CVE-2026-98090 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98090
Vulnerability Analysis
The btrfs seed-and-sprout mechanism allows a read-only seed filesystem to be extended by attaching a writable sprout device. During this transition, btrfs_init_new_device() promotes the sprout as the active device by updating fs_info->latest_dev and, in some paths, the superblock's s_bdev pointer. These pointers are updated before the first writable chunks are allocated on the new device.
If the allocation of writable chunks or any later sprout setup step fails, the error-handling path tears down and releases the newly added sprout device. However, it does not reset latest_dev or s_bdev back to the seed device. Both now reference freed memory.
Subsequent calls into btrfs_show_devname(), which the kernel invokes to produce the device name for /proc/mounts and similar interfaces, dereference the stale latest_dev pointer. This produces a use-after-free, typically visible as a kernel oops or panic.
Root Cause
The root cause is incomplete rollback in the error path of btrfs_init_new_device(). The function performs state mutations before the operation is guaranteed to succeed and fails to invert those mutations when the operation aborts. The patched code restores the active device pointers to the latest seed device before removing and releasing the failed sprout device.
Attack Vector
Exploitation requires local access with the ability to perform btrfs device add operations on a mounted seed filesystem. Triggering the condition depends on inducing a failure during chunk creation or sprout setup. The resulting kernel crash constitutes a local denial-of-service condition. No memory disclosure or code execution has been publicly demonstrated.
The vulnerability mechanism is described in detail in the upstream fix. See the kernel commit e127ac2 for the authoritative patch.
Detection Methods for CVE-2026-98090
Indicators of Compromise
- Kernel oops or panic messages referencing btrfs_show_devname in the call trace
- Use-after-free reports from KASAN implicating latest_dev within btrfs device management code
- Crashes correlated with recent btrfs device add operations against a seed filesystem
Detection Strategies
- Monitor dmesg and journald for btrfs error messages tied to failed sprout device initialization
- Audit systems where seed/sprout btrfs configurations are used, which is uncommon outside of embedded and appliance deployments
- Enable KASAN on test kernels to surface the use-after-free deterministically during fuzzing or QA
Monitoring Recommendations
- Forward kernel log events to a centralized log platform and alert on btrfs panics or oopses
- Track invocations of btrfs device add and correlate with subsequent host instability
- Maintain inventory of kernel versions in use and flag hosts running pre-patch builds
How to Mitigate CVE-2026-98090
Immediate Actions Required
- Apply the stable kernel update containing the upstream fix on all affected hosts
- Prioritize patching systems that use btrfs seed devices or run untrusted local workloads
- Reboot after installing the updated kernel package to activate the fix
Patch Information
The fix restores the active device pointers to the latest seed device before releasing the failed sprout device. The patch is available in the following upstream commits: Kernel Git Commit 2ee5c4b, Kernel Git Commit b79b4b2, Kernel Git Commit e0b5461, and Kernel Git Commit e127ac2. Consume the fix through your distribution's standard kernel update channel.
Workarounds
- Avoid executing btrfs device add against mounted seed filesystems on unpatched hosts
- Restrict CAP_SYS_ADMIN and btrfs management privileges to trusted administrators
- Where seed/sprout functionality is not required, use conventional btrfs volumes instead
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

