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

CVE-2026-98832: Linux Kernel Race Condition Vulnerability

CVE-2026-98832 is a race condition flaw in the Linux kernel's blk-cgroup subsystem that can cause deadlocks when interrupts are improperly handled. This post covers the technical details, affected versions, 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-98832 Overview

CVE-2026-98832 affects the Linux kernel block cgroup (blk-cgroup) subsystem. The vulnerability resides in blkg_tryget_closest(), which acquires q->queue_lock with spin_lock_irq() and releases it with spin_unlock_irq(). The unconditional interrupt enable corrupts caller IRQ state when bio_set_dev() is invoked with interrupts already disabled. Device-mapper thin provisioning (dm-thin) triggers the condition via pool_map() while holding pool->lock. The resulting re-entry from an I/O completion softirq produces a deadlock on the same CPU, flagged by lockdep as inconsistent SOFTIRQ-ON-W to IN-SOFTIRQ-W usage.

Critical Impact

Kernel deadlock in the block I/O path on systems using device-mapper thin provisioning, causing system hangs and loss of storage availability.

Affected Products

  • Linux kernel (upstream block cgroup subsystem)
  • Systems using dm-thin (device-mapper thin provisioning)
  • Kernels containing commit 9327a865e395 ("blk-cgroup: don't nest queue_lock under rcu in blkg_lookup_create()")

Discovery Timeline

  • 2026-10-18 - CVE-2026-98832 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98832

Vulnerability Analysis

The defect is a locking primitive mismatch inside the block cgroup lookup path. bio_set_dev() calls bio_associate_blkg(), which on a cache miss invokes blkg_tryget_closest() to resolve the closest ancestor block cgroup. That helper takes q->queue_lock with spin_lock_irq() and releases it with spin_unlock_irq().

When a caller enters bio_set_dev() with local interrupts already disabled, the unconditional spin_unlock_irq() re-enables them while an outer lock is still held. In the dm-thin case, pool_map() holds pool->lock acquired via spin_lock_irq(). Once interrupts return on the same CPU, an I/O completion softirq executes thin_endio() or overwrite_endio() -> complete_mapping_preparation(), which attempts to re-acquire pool->lock and deadlocks.

A prior fix, commit 3a762de55b4e ("block: save irq state in blkg_lookup_create()"), handled the same scenario when the lock lived in blkg_lookup_create(). Commit 9327a865e395 later moved the locking into blkg_tryget_closest() and regressed to spin_lock_irq(), reintroducing the defect.

Root Cause

The root cause is improper use of IRQ-affecting spinlock primitives in a function callable from contexts with interrupts already disabled. The fix replaces spin_lock_irq()/spin_unlock_irq() with spin_lock_irqsave()/spin_unlock_irqrestore() to preserve the caller's IRQ state.

Attack Vector

The defect is a reliability and availability bug reachable through normal I/O workloads on affected configurations. Triggering requires block I/O routed through dm-thin pools where pool_map() associates bios with block cgroups while holding pool->lock. No remote vector is documented; exposure is local to the kernel I/O stack.

No public exploitation code or proof-of-concept has been published. The vulnerability manifests as a lockdep splat and, under production conditions, a hard deadlock stalling the storage subsystem. See the upstream fix commit 327c428 for the authoritative description.

Detection Methods for CVE-2026-98832

Indicators of Compromise

  • Lockdep warnings reporting inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage referencing pool->lock or q->queue_lock.
  • Kernel task hangs with stack traces that include blkg_tryget_closest, bio_associate_blkg, pool_map, thin_endio, or complete_mapping_preparation.
  • Stalled block I/O on volumes backed by device-mapper thin pools, with CPU soft lockup messages on the affected core.

Detection Strategies

  • Enable CONFIG_PROVE_LOCKING and CONFIG_DEBUG_ATOMIC_SLEEP in test kernels to surface the inconsistent IRQ usage before deployment.
  • Correlate dmesg output for WARNING: inconsistent lock state entries pointing at blk-cgroup.c functions.
  • Monitor /proc/lockdep_stats and kernel ring buffer for repeated reports of the same lock chain.

Monitoring Recommendations

  • Alert on kernel soft lockup and hung task messages on storage nodes using dm-thin.
  • Collect kernel crash dumps with kdump to capture full stack traces when the deadlock occurs.
  • Track blkio cgroup activity on thin-provisioned volumes to identify workloads that exercise the vulnerable path.

How to Mitigate CVE-2026-98832

Immediate Actions Required

  • Apply the upstream kernel patch that converts blkg_tryget_closest() to use spin_lock_irqsave()/spin_unlock_irqrestore().
  • Rebuild and deploy kernels from a stable branch that includes the fix referenced in commits 327c428 and 9fcf431.
  • On unpatched hosts, reduce exposure by avoiding block cgroup assignment changes on active dm-thin pools.

Patch Information

The fix saves and restores the caller's IRQ state inside blkg_tryget_closest() instead of unconditionally enabling interrupts. Upstream commits are available at Kernel Git Commit 327c428 and Kernel Git Commit 9fcf431. Distribution kernels should pick up the fix through their stable update channels.

Workarounds

  • No supported runtime workaround exists; the defect is in core block cgroup locking.
  • Where patching is delayed, consider migrating critical workloads off dm-thin to storage backends that do not trigger the vulnerable code path.
  • Validate kernel builds in a staging environment with lockdep enabled before promoting to production.
bash
# Verify the running kernel includes the fix
uname -r
git -C /usr/src/linux log --oneline | grep -E '327c428|9fcf431'

# Confirm lockdep is enabled for pre-production validation
zgrep -E 'CONFIG_PROVE_LOCKING|CONFIG_DEBUG_ATOMIC_SLEEP' /proc/config.gz

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.