Linux Kernel Nouveau DRM Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's Nouveau Direct Rendering Manager (DRM) component. The issue arises in the 'nouveau_gem_prime_import_sg_table()' function, where 'nouveau_bo_init()' relies on 'ttm_bo_init()' to initialize a buffer object. If 'nouveau_bo_init()' fails, the memory is freed, but the GEM object has already been released. Consequently, a subsequent call to 'nouveau_bo_ref()' attempts to access the freed memory, leading to a use-after-free condition. This vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability causes a use-after-free condition, which can lead to memory corruption and potentially allow for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by invoking the 'nouveau_gem_prime_import_sg_table()' function with parameters that trigger a failure in 'nouveau_bo_init()'. This can be done by simulating a scenario where the initialization process encounters an error, causing the function to free the memory before it can be properly referenced. This sequence of events creates the use-after-free condition by attempting to access a memory location that has already been released.

Remediation

The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this issue has been fixed.

Added: Oct 1, 2025, 3:14 PM
Updated: Oct 1, 2025, 3:14 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.