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

CVE-2026-98286: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98286 is a use-after-free flaw in the Linux kernel drop_monitor that can trigger kernel panics when timers execute in freed memory. This article 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-98286 Overview

CVE-2026-98286 is a race condition in the Linux kernel drop_monitor subsystem that can lead to a use-after-free. Teardown paths stop per-CPU send_timer instances with timer_delete_sync() followed by cancel_work_sync(). Under memory pressure, the deferred worker can re-arm the timer via mod_timer() after timer_delete_sync() has returned. Once the module is unloaded, the still-active timer fires sched_send_work() in freed memory, causing a kernel panic.

Critical Impact

A timer rearming race in drop_monitor teardown can leave an active per-CPU timer referencing freed module memory, resulting in use-after-free and kernel panic when the module is unloaded.

Affected Products

  • Linux kernel builds that include the drop_monitor network diagnostics module prior to the fix commits
  • Stable kernel branches referenced by commits 9616b0c, bda4d95, and c391a40
  • Distributions shipping vulnerable drop_monitor code paths

Discovery Timeline

  • 2026-10-06 - CVE-2026-98286 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98286

Vulnerability Analysis

The flaw lives in drop_monitor teardown paths including net_dm_trace_off_set(), net_dm_hw_monitor_stop(), and the error unwind paths in net_dm_trace_on_set() and net_dm_hw_monitor_start(). These paths stop per-CPU send_timer instances using timer_delete_sync() and then call cancel_work_sync() on the associated dm_alert_work. A circular dependency exists between the timer and the worker that this sequence does not fully resolve.

The timer callback sched_send_work() schedules dm_alert_work. The worker runs send_dm_alert() or net_dm_hw_summary_work(), which in turn invoke reset_per_cpu_data() or net_dm_hw_reset_per_cpu_data(). If an allocation inside the reset function fails under memory pressure, the code re-arms the timer with mod_timer(&data->send_timer, ...).

If the worker runs concurrently on another CPU while teardown is executing, the re-arm happens after timer_delete_sync() has already returned. The timer then remains queued in the timer wheel after cancel_work_sync() completes and module_put() is called. When the module is unloaded, the pending timer fires against freed memory. This classifies as a Use-After-Free triggered by a Race Condition in kernel code.

Root Cause

The root cause is the use of timer_delete_sync() in a teardown path where the deferred worker it drains can still re-arm the same timer. timer_delete_sync() only waits for currently running handlers; it does not block subsequent mod_timer() calls. Combined with allocation failure handling that unconditionally re-arms the timer, teardown ordering becomes unsound.

Attack Vector

Triggering requires local conditions that stop and start drop_monitor while memory pressure is present, so that reset_per_cpu_data() encounters allocation failures and executes the re-arm path. No remote vector is described. Successful triggering results in a kernel panic or use-after-free rather than privilege escalation primitives, but kernel memory corruption consequences cannot be excluded.

The upstream fix switches the teardown calls to timer_shutdown_sync(), which marks the timer as not re-armable. Any subsequent mod_timer() from the worker returns without re-queuing. When monitoring is restarted, timer_setup() cleanly re-initializes the timer.

// Vulnerability described in prose; see upstream commits for the exact diff:
// https://git.kernel.org/stable/c/9616b0c67fbd8cc0b49de7b26cdf2ab33747c80e
// https://git.kernel.org/stable/c/bda4d9525fb91a2388ee09669421b8d505290864
// https://git.kernel.org/stable/c/c391a40f71886b28c082b47270f0e856fa3e1150

Detection Methods for CVE-2026-98286

Indicators of Compromise

  • Kernel oops or panic traces referencing sched_send_work, send_dm_alert, or net_dm_hw_summary_work after a drop_monitor stop or module unload
  • Use-after-free reports from KASAN implicating drop_monitor per-CPU data structures
  • Soft lockups or crashes correlated with memory pressure events and toggling of drop_monitor state

Detection Strategies

  • Compare the running kernel version against the fix commits 9616b0c, bda4d95, and c391a40 across all Linux hosts
  • Enable KASAN in test and canary builds to surface use-after-free in drop_monitor teardown
  • Inventory nodes where drop_monitor is loaded or exercised by telemetry tooling such as drop watchers

Monitoring Recommendations

  • Collect dmesg and /var/log/kern.log entries matching drop_monitor, net_dm, and send_timer symbols
  • Alert on unexpected kernel panics on hosts that load drop_monitor, especially during low-memory conditions
  • Track module load and unload events for drop_monitor via auditd rules on init_module and delete_module

How to Mitigate CVE-2026-98286

Immediate Actions Required

  • Apply the upstream fix that replaces timer_delete_sync() with timer_shutdown_sync() in drop_monitor teardown paths
  • Update to stable kernels incorporating commits 9616b0c67fbd, bda4d9525fb9, and c391a40f7188
  • If patching is deferred, avoid loading drop_monitor and prevent toggling it on hosts under memory pressure

Patch Information

The fix is available in the upstream Linux kernel through three stable commits: Kernel Git Commit 9616b0c, Kernel Git Commit bda4d95, and Kernel Git Commit c391a40. The fix switches teardown to timer_shutdown_sync(), guaranteeing in-flight handlers complete and preventing further re-arming. Monitoring restart is handled cleanly through timer_setup().

Workarounds

  • Blacklist the drop_monitor kernel module on systems that do not require network drop telemetry
  • Restrict CAP_NET_ADMIN to trusted operators to limit who can toggle drop_monitor state
  • Avoid unloading the drop_monitor module on long-running production hosts until the patched kernel is deployed
bash
# Prevent drop_monitor from loading until a patched kernel is installed
echo 'install drop_monitor /bin/false' | sudo tee /etc/modprobe.d/disable-drop_monitor.conf
sudo rmmod drop_monitor 2>/dev/null || true
uname -r   # verify kernel version against fix commits 9616b0c, bda4d95, c391a40

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.