drm/nouveau: prime: fix refcount underflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ab9ccb96a6e6f95bcde6b8b2a524370efdbfdcd6 · < 2a1b327d57a8ac080977633a18999f032d7e9e3f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: prime: fix refcount underflow
Calling nouveau_bo_ref() on a nouveau_bo without initializing it (and hence the backing ttm_bo) leads to a refcount underflow.
Instead of calling nouveau_bo_ref() in the unwind path of drm_gem_object_init(), clean things up manually.
(cherry picked from commit 1b93f3e89d03cfc576636e195466a0d728ad8de5)
From the CVE record · Linux
The Linux kernel’s drm/nouveau prime code can underflow a buffer object's reference count when initialization fails and the cleanup path calls nouveau_bo_ref() on an uninitialized object. The input does not establish whether an attacker can trigger this condition or specify access or interaction requirements.
Engineers running Linux kernels with the drm/nouveau component should check whether their kernel includes the fix; affected versions were not provided.