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

CVE-2026-98841: Linux Kernel vmgenid Use-After-Free Vulnerability

CVE-2026-98841 is a use-after-free flaw in the Linux kernel vmgenid driver that causes NULL pointer dereference and system panics. This article covers technical details, affected versions, impact, 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-98841 Overview

CVE-2026-98841 is a NULL pointer dereference in the Linux kernel virt/vmgenid driver. Both probe paths register notification handlers before assigning driver_data, which the handler then dereferences. An IRQ delivered during this window causes vmgenid_notify() to dereference a NULL pointer and panic the kernel.

The issue affects both the devicetree path, where devm_request_irq() may receive a pending or shared IRQF_SHARED interrupt, and the ACPI path, where acpi_install_notify_handler() can dispatch an asynchronous notification before initialization completes. Virtual Machine Monitors such as Firecracker trigger this reliably on snapshot restore.

Critical Impact

A guest kernel panic occurs at boot when a VMM injects a generation-changed notification during snapshot restore, resulting in denial of service for virtualized Linux workloads.

Affected Products

  • Linux kernel virt/vmgenid driver (devicetree probe path)
  • Linux kernel virt/vmgenid driver (ACPI probe path)
  • Virtualized Linux guests restored from VMM snapshots (for example, Firecracker)

Discovery Timeline

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

Technical Details for CVE-2026-98841

Vulnerability Analysis

The vmgenid driver exposes a virtual machine generation identifier used by guests to detect clone or snapshot restore events. The driver registers an interrupt or ACPI notification handler during probe, then assigns driver_data afterward. The handler calls vmgenid_notify(), which dereferences driver_data to access driver state.

If the notification fires between handler registration and driver_data assignment, the handler reads a NULL pointer. The resulting panic trace shows the fault at vmgenid_notify.isra.0+0x24/0x8c reached from vmgenid_of_irq_handler, through __handle_irq_event_percpu and handle_fasteoi_irq.

The faulting address 0000000000000010 corresponds to a field offset within the driver state structure dereferenced from the NULL base pointer. The panic occurs on CPU 0 under swapper/0 at PID 1, meaning the kernel cannot continue booting.

Root Cause

The root cause is an ordering bug [CWE-476 class] between handler registration and state initialization. Both the devicetree and ACPI probe paths register their notification callback while driver_data is still NULL. The handler assumes initialization has completed and dereferences the pointer without a NULL check.

Attack Vector

In the devicetree path, the IRQ may already be pending when devm_request_irq() runs, or another device sharing the line can raise it because the IRQ is requested with IRQF_SHARED. A VMM injecting the generation-changed notification during snapshot restore reliably reproduces the panic, as Firecracker does when restoring guests snapshotted before the driver probed.

The ACPI path has a narrower race window because notifications are dispatched asynchronously from a workqueue, but a notification arriving between acpi_install_notify_handler() and the driver_data assignment triggers the same NULL dereference.

The vulnerability is a denial-of-service condition. There is no indication of memory corruption or arbitrary code execution. See the Kernel Commit 538fe5e for the upstream fix.

Detection Methods for CVE-2026-98841

Indicators of Compromise

  • Kernel panic logs referencing vmgenid_notify or vmgenid_of_irq_handler in the call trace.
  • Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010 reported during guest boot.
  • Guest VMs failing to resume from snapshots with repeated boot-time panics on CPU 0 (swapper/0, PID 1).

Detection Strategies

  • Scan guest kernel versions against the fixed commits 538fe5e, 7a1e8da, 8f42954, and 9f8139c on git.kernel.org/stable.
  • Correlate VMM snapshot-restore events with guest boot failures and panic traces collected from serial consoles.
  • Inventory Linux guests running on Firecracker or similar VMMs that emit VmGenerationCounter notifications on restore.

Monitoring Recommendations

  • Forward guest serial console output and kmsg buffers to a centralized log store for panic string matching.
  • Alert on VM restart loops following snapshot-restore operations in orchestration platforms.
  • Track package versions of the Linux kernel across fleet inventory and flag unpatched hosts handling untrusted snapshot operations.

How to Mitigate CVE-2026-98841

Immediate Actions Required

  • Apply the upstream kernel patches that assign driver_data before registering the notification handler.
  • Rebuild or update guest kernel images used in snapshot-restore workflows on Firecracker and comparable VMMs.
  • Pause snapshot-restore operations on affected kernels until patched images are deployed.

Patch Information

The fix moves the driver_data assignment ahead of handler registration in both probe paths. The driver core clears driver_data in device_unbind_cleanup() on probe failure, so the error path leaves no dangling pointer. Patches are available in the following stable commits: 538fe5e, 7a1e8da, 8f42954, and 9f8139c.

Workarounds

  • Disable the vmgenid driver in guest kernel configuration (CONFIG_VMGENID) where generation-counter notifications are not required.
  • Avoid restoring guests from snapshots created before the driver probe completed on affected unpatched kernels.
  • Where possible, isolate the vmgenid IRQ from shared lines to reduce early-fire exposure on devicetree platforms.
bash
# Verify current kernel version and vmgenid driver status
uname -r
dmesg | grep -i vmgenid
# Check whether the vmgenid module is loaded
lsmod | grep vmgenid

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.