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

CVE-2026-98179: Linux Kernel Information Disclosure Vulnerability

CVE-2026-98179 is an information disclosure vulnerability in the Linux kernel affecting the AMD GPU driver. This flaw causes memory mapping leaks during device removal. This article covers technical details, affected versions, impact assessment, 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-98179 Overview

CVE-2026-98179 is a memory leak vulnerability in the Linux kernel's amdgpu Direct Rendering Manager (DRM) driver. The flaw resides in the device removal path, where amdgpu_pci_remove() calls drm_dev_unplug() before fini_sw(). This ordering causes drm_dev_enter() to return false, which in turn skips the iounmap() call guarded by it. The register Base Address Register (BAR) ioremap mapping leaks one instance per driver unload. The remove path executes on both hot-unplug events and ordinary rmmod operations, so the leak accumulates with every unload cycle on affected systems.

Critical Impact

Each unload of the amdgpu driver leaks the register BAR ioremap mapping, exhausting kernel virtual address space over repeated load/unload cycles.

Affected Products

  • Linux kernel builds including the drm/amdgpu driver prior to the fix
  • Stable kernel branches referenced in the backport commits
  • Systems using AMD GPUs with the amdgpu kernel module

Discovery Timeline

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

Technical Details for CVE-2026-98179

Vulnerability Analysis

The amdgpu driver maps the GPU's register BAR into kernel virtual memory using ioremap() during device initialization. This mapping, referenced as rmmio, must be released with iounmap() when the device is removed. The removal path in amdgpu_pci_remove() invokes drm_dev_unplug() before the software teardown function fini_sw(). After drm_dev_unplug(), the DRM device is marked as unplugged and any subsequent call to drm_dev_enter() returns false. The iounmap() call for rmmio was placed inside a drm_dev_enter() guard, so it is bypassed on every removal. This leak affects both hot-unplug paths and normal rmmod amdgpu operations.

Root Cause

The root cause is incorrect ordering between the DRM unplug notification and resource teardown, combined with a drm_dev_enter() guard around iounmap() that is inappropriate for a cleanup operation. Resource release should not be gated on a liveness check that fails after unplug. This is a Memory Leak class defect in a kernel driver teardown routine.

Attack Vector

Triggering the leak requires only the ability to load and unload the amdgpu driver or to perform physical hot-unplug of a supported AMD GPU. On systems that repeatedly reload the module, such as developer workstations, test automation, or servers that exercise GPU passthrough, kernel virtual address space is slowly consumed. The vulnerability does not provide code execution or privilege escalation on its own. The fix unmaps rmmio unconditionally with a non-NULL guard and removes the unused idx variable, as documented in the upstream commits.

The vulnerability manifests entirely in kernel driver teardown logic. See the Linux kernel commits for technical details: upstream fix commit dd6f86a9 and the related stable backports.

Detection Methods for CVE-2026-98179

Indicators of Compromise

  • Growth in kernel vmalloc or ioremap region usage after repeated amdgpu module loads and unloads, visible in /proc/vmallocinfo.
  • dmesg entries showing successful amdgpu removal while kernel memory accounting continues to grow across unload cycles.
  • Eventual vmap allocation failed or ioremap failure messages on long-running systems that cycle the driver.

Detection Strategies

  • Audit running kernel versions against the fixed stable releases referenced in the upstream commits.
  • Monitor /proc/meminfoVmallocUsed counter trends on systems that unload the amdgpu module during maintenance or testing.
  • Correlate module load and unload events via auditd with memory metrics to identify leaking hosts.

Monitoring Recommendations

  • Alert when VmallocUsed grows monotonically without recovery across GPU driver reload cycles.
  • Track kernel version inventory across Linux fleets and flag hosts running pre-patch builds of the amdgpu driver.
  • Review automation that triggers rmmod amdgpu or performs PCI hot-unplug sequences on AMD GPU hardware.

How to Mitigate CVE-2026-98179

Immediate Actions Required

  • Update the Linux kernel to a stable release that includes the backported fix cherry-picked from commit dd6f86a97260e5207d3329ad03aa89fdad61b1e6.
  • Reboot affected hosts after upgrading to clear any accumulated leaked mappings.
  • Avoid repeated unload cycles of the amdgpu module on unpatched kernels until the update is applied.

Patch Information

The fix unmaps rmmio unconditionally, guarded only by a non-NULL check, and removes the now unused idx variable. The change has been merged upstream and cherry-picked to stable branches. Reference commits: kernel.org commit 5155002b, kernel.org commit a645584c, kernel.org commit cd55dde2, and kernel.org commit e81502d6.

Workarounds

  • Keep the amdgpu module loaded for the lifetime of the host and avoid rmmod/modprobe cycles on unpatched systems.
  • Reboot periodically on systems where driver reload cannot be avoided to reset kernel virtual address space usage.
  • Restrict unprivileged access to module management commands with standard Linux capabilities and sudo policy enforcement.

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.