drm/nouveau: avoid a use-after-free when BO init fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.735.14.125.15In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: avoid a use-after-free when BO init fails
nouveau_bo_init() is backed by ttm_bo_init() and ferries its return code back to the caller. On failures, ttm_bo_init() invokes the provided destructor which should de-initialize and free the memory.
Thus, when nouveau_bo_init() returns an error the gem object has already been released and the memory freed by nouveau_bo_del_ttm().
From the CVE record · Linux
The Linux kernel's drm/nouveau component has a use-after-free when buffer object initialization fails. On failure, the initialization routine frees the GEM object, but the caller may still use it. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel with drm/nouveau should check their installations; affected versions are not specified.