CVE-2026-41158: GPU Use-After-Free Vulnerability – Local Privilege Escalation Risk
A vulnerability exists where a regular (non-privileged) user can exploit a flaw in GPU memory handling to write data to physical memory pages that have been freed by the kernel. The issue stems from improper cleanup of GPU-allocated memory—when pages are freed, the GPU can still access and modify them before they're reassigned. This allows an attacker without administrative rights to corrupt kernel memory or escalate privileges by writing to areas they shouldn't control.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-416
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-12 / 2026-06-17
NVD description (verbatim)
Software installed and run as a non-privileged user may conduct GPU system calls to write to arbitrary freed physical pages. Physical memory allocated and freed, without the deferred free mechanism can lead to those resources being used for read/write by the GPU after the kernel module has freed the resource.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-41158 is a use-after-free vulnerability (CWE-416) in GPU memory management. Non-privileged processes can issue GPU system calls that write to arbitrary freed physical pages. The root cause is the absence of a deferred free mechanism; when the kernel module deallocates GPU memory, the GPU retains access to those physical pages. An attacker can leverage this window to read or write sensitive kernel data structures, potentially achieving arbitrary code execution or privilege escalation. The vulnerability requires local access and the ability to issue GPU commands, but no user interaction or elevated privileges.
Business impact
Successful exploitation could allow an unprivileged attacker to gain kernel-level code execution or escalate privileges on affected systems. This threatens confidentiality (reading sensitive kernel data), integrity (modifying kernel structures), and availability (causing system crashes). Organizations running GPU-accelerated workloads—especially those isolating user tenants on shared systems or running containers with GPU passthrough—face elevated risk. The vulnerability is particularly concerning in cloud environments, high-performance computing clusters, and machine learning platforms where untrusted code may run with GPU access.
Affected systems
Systems running GPU compute workloads with vulnerable kernel GPU drivers are affected. The vulnerability requires both local access and GPU device access; it is not remotely exploitable. Affected platforms likely include systems with NVIDIA, AMD, or Intel GPU drivers that lack proper memory deallocation safeguards. Without vendor product confirmation in the advisory data, verification against specific vendor security bulletins is required. Check your GPU driver version against the vendor's official security advisories.
Exploitability
Exploitability is practical but not trivial. An attacker needs local code execution capability and access to GPU APIs (typically available to any local user on systems with GPU compute support). No user interaction is required, and the attack succeeds regardless of standard memory protections. The CVSS vector (AV:L/AC:L/PR:L) reflects that exploitation is straightforward once local access is gained. However, the attack requires understanding GPU memory layouts and kernel internals, limiting the immediate threat to sophisticated attackers. Public exploit code has not been reported.
Remediation
Apply security patches from your GPU driver vendor as soon as they become available. The fix likely implements proper deferred memory freeing and synchronization barriers between GPU and kernel operations. Until patches are deployed, restrict GPU device access to trusted users and processes. Consider disabling GPU compute features if not operationally necessary. Monitor for suspicious GPU API calls and kernel memory corruption events. In cloud or shared compute environments, isolate untrusted workloads and audit GPU resource assignments.
Patch guidance
Contact your GPU driver vendor (NVIDIA, AMD, Intel, or other) to obtain patched driver versions. Security advisories typically specify fixed versions by driver series. Test patches in a non-production environment first, as GPU driver updates can affect system stability and application compatibility. Verify successful patching by checking driver version output (e.g., nvidia-smi, rocm-smi) and validating that the system's dmesg logs show the expected driver version at boot. Establish a regular driver update schedule aligned with vendor release cycles.
Detection guidance
Monitor kernel logs (dmesg) for GPU memory access violations, unexpected GPU API calls from unprivileged processes, or kernel memory corruption warnings. Use tools like auditd to log GPU device file access patterns (/dev/nvidia*, /dev/dri/). Implement kernel integrity monitoring to detect writes to kernel memory. In containerized environments, audit GPU device capability assignments and monitor container GPU API traffic. Behavioral analytics looking for unusual GPU memory allocation patterns or repeated failed GPU calls may reveal exploitation attempts. Note that detection is challenging without vendor-provided logging enhancements.
Why prioritize this
This vulnerability merits high priority despite the local-only attack vector because: (1) the CVSS 7.8 HIGH score reflects arbitrary read/write to kernel memory, (2) privilege escalation from unprivileged to kernel level is achievable, (3) GPU access is increasingly common in development, cloud, and HPC environments, (4) exploitation requires moderate sophistication but no user interaction, and (5) the memory handling flaw is fundamental to the affected driver versions. Organizations with GPU-accelerated services should prioritize patching. Lower priority can be assigned only if GPU compute is disabled or fully restricted to trusted users.
Risk score, explained
The CVSS 3.1 score of 7.8 (HIGH) reflects a high-impact vulnerability with reasonable exploitability: Local attack vector (AV:L) and low attack complexity (AC:L) mean any local user with GPU access can attempt exploitation. Low privilege requirement (PR:L) confirms that standard user accounts suffice. The vulnerability carries high confidentiality (C:H), integrity (I:H), and availability (A:H) impact, as an attacker can read kernel memory, modify critical structures, and destabilize the system. The lack of network exposure and requirement for local presence prevent a critical or maximum score, but the ease of exploitation and severity of impact justify the HIGH designation.
Frequently asked questions
Can this vulnerability be exploited remotely?
No. The vulnerability requires local code execution and direct access to GPU APIs. It cannot be exploited over the network. Remote attackers would need to first compromise local code execution through a separate vulnerability.
Do I need to patch if GPU compute is disabled on my systems?
If GPU functionality is fully disabled and GPU devices are not accessible to users, the immediate risk is mitigated. However, if GPUs may be enabled in the future, apply the patch to avoid future exposure. Always follow your vulnerability management policy.
Will patching my GPU driver break my applications?
GPU driver updates can occasionally affect application compatibility, particularly for older applications or custom CUDA/HIP code. Test patches on a staging system first. Vendor release notes will highlight any known compatibility issues. Contact your GPU vendor support if critical compatibility problems arise.
How can I verify that my system is vulnerable?
Check your GPU driver version against the vendor's security advisory to confirm whether your version is in the affected range. Consult NVIDIA, AMD, Intel, or your GPU vendor's official security bulletins. Generic scanning tools may not reliably detect this vulnerability; rely on vendor advisories for authoritative version information.
This analysis is based on publicly available vulnerability data as of the publication date. Specific affected products and patch versions should be verified against official vendor security advisories before deployment. SEC.co makes no warranty regarding the completeness or accuracy of third-party vendor information. Organizations must validate their own system configurations and apply patches according to their risk management policies and testing protocols. Exploitation requires specific technical knowledge and local access; generic vulnerability scanners may not reliably detect this issue. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2026-10000HIGHChrome Sandbox Escape via Use-After-Free in Password Handling
- CVE-2026-10001HIGHChrome Sandbox Escape via PerformanceManager Use-After-Free
- CVE-2026-10002HIGHGoogle Chrome PDFium Use-After-Free Vulnerability (CVSS 8.8)
- CVE-2026-10003HIGHChrome Use-After-Free Code Execution Vulnerability Analysis
- CVE-2026-10005HIGHChrome macOS Use-After-Free RCE Vulnerability (7.5 CVSS)
- CVE-2026-10007HIGHChrome Use-After-Free in SVG Arbitrary Code Execution (CVSS 8.8)
- CVE-2026-10012HIGHChrome Skia Use-After-Free Sandbox Escape (v148.0.7778.216)
- CVE-2026-10013HIGHUse-After-Free in Chrome WebCodecs – Patch Guide & Risk Assessment