drm/nouveau: Fix gem reference leak in validate_init()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 19ca10d82e33bcfe92412c461fc3534ec1e14747 · < 030e93fc91d55d9487b3b85fc0712bb795d77834| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: Fix gem reference leak in validate_init()
On the ttm_bo_reserve() failure and "vma not found" error paths, the loop breaks without adding the looked-up object to any validate list, so the reference taken by drm_gem_object_lookup() is never released; validate_fini() only walks the spliced lists. Drop the reference before breaking out on both paths.
From the CVE record · Linux
The Linux kernel's drm/nouveau validate_init() can leak a GEM object reference when ttm_bo_reserve() fails or a VMA is not found. The input does not specify how an attacker could trigger these paths or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with drm/nouveau should check whether their kernel includes the fix; affected versions are not specified.