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-98515 Overview
CVE-2026-98515 is a double-free vulnerability in the Linux kernel's drm/nouveau graphics driver. The flaw resides in nvif_vmm_dtor(), which unconditionally frees vmm->page without clearing the pointer afterwards. When nouveau_cli_init() fails, nouveau_cli_fini() is invoked twice along the cleanup path, triggering a second free of the same allocation. The issue was identified through fuzzing with a modified Syzkaller harness and confirmed by KASAN.
Critical Impact
A local user able to open the nouveau DRM character device can trigger kernel heap corruption, enabling denial of service or potential local privilege escalation on affected Linux systems.
Affected Products
- Linux kernel versions containing the drm/nouveau driver prior to the fixing commits
- Distributions shipping the vulnerable nvif_vmm_dtor() implementation in drivers/gpu/drm/nouveau/nvif/vmm.c
- Systems with the nouveau kernel module loaded and DRM device nodes accessible
Discovery Timeline
- 2026-10-18 - CVE-2026-98515 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98515
Vulnerability Analysis
The vulnerability is a double-free [CWE-415] in the nouveau Direct Rendering Manager (DRM) driver's virtual memory manager destructor. The function nvif_vmm_dtor() in drivers/gpu/drm/nouveau/nvif/vmm.c calls kfree(vmm->page) without setting vmm->page = NULL after the free. When any failure occurs during nouveau_cli_init(), the error path calls nouveau_cli_fini() to clean up. Control then returns to nouveau_drm_open(), whose own error path calls nouveau_cli_fini() a second time. The second invocation walks through nouveau_vmm_fini() and reaches nvif_vmm_dtor() again, freeing the already-released vmm->page allocation.
Root Cause
The root cause is missing pointer invalidation after kfree() combined with duplicated cleanup logic across nouveau_cli_init() and nouveau_drm_open(). Both error paths assume ownership of client teardown, so the destructor executes twice on the same object. Because vmm->page retains its original address, the kernel slab allocator detects an invalid free during the second pass. KASAN reports the condition as BUG: KASAN: double-free in nvif_vmm_dtor+0x31/0x50.
Attack Vector
Exploitation requires local access to the nouveau DRM device node, typically /dev/dri/card* or /dev/dri/renderD*. An attacker opens the device and triggers conditions that cause nouveau_cli_init() to fail partway through initialization. The duplicated cleanup path then double-frees the kernel heap allocation. Successful heap grooming could allow a local attacker to corrupt adjacent slab objects, leading to denial of service or privilege escalation depending on allocator state.
No verified public exploit code is available. The condition was reproduced via Syzkaller fuzzing; see the kernel commits for the technical fix details.
Detection Methods for CVE-2026-98515
Indicators of Compromise
- KASAN kernel log entries containing double-free in nvif_vmm_dtor or stack traces referencing nouveau_cli_fini and nouveau_vmm_fini
- Unexpected kernel oops, panic, or slab corruption warnings originating from drivers/gpu/drm/nouveau/
- Processes repeatedly opening /dev/dri/card* nodes with unusual failure patterns in dmesg
Detection Strategies
- Enable KASAN or SLUB debugging on test kernels to surface double-free conditions in the nouveau driver during triage
- Audit kernel logs for repeated nouveau_drm_open failures correlated with slab allocator warnings
- Monitor loaded kernel modules and flag systems where nouveau is active but patches have not been applied
Monitoring Recommendations
- Forward kernel ring buffer (dmesg, /var/log/kern.log) to a centralized logging platform and alert on KASAN or BUG entries
- Track process access to DRM device nodes to identify unprivileged workloads probing the nouveau interface
- Inventory running kernel versions across the fleet and flag hosts missing the fixing commits listed in the kernel.org references
How to Mitigate CVE-2026-98515
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced below and reboot affected systems
- If patching is not immediately possible, unload the nouveau module with modprobe -r nouveau on systems that do not require it
- Restrict access to /dev/dri/* device nodes to trusted users through group membership and udev rules
Patch Information
The fix sets vmm->page to NULL after kfree() to prevent the second destructor invocation from freeing the same pointer. Fixing commits are available in the stable kernel tree: Kernel Commit 023e7a0, Kernel Commit 109a8d2, Kernel Commit 279e5ac, Kernel Commit 375901a, Kernel Commit 872a547, Kernel Commit 97077ac, Kernel Commit bf542ec, and Kernel Commit f09f4a5.
Workarounds
- Blacklist the nouveau driver on servers and workstations that do not need NVIDIA graphics acceleration by adding blacklist nouveau to /etc/modprobe.d/blacklist-nouveau.conf
- Tighten permissions on DRM device nodes so that only members of the video or render groups can open them
- Deploy distribution kernel updates as they become available from your Linux vendor's security channel
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

