drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d38ceaf99ed015f2a0b9af3499791bd3a3daae21 · < 997e28d3d00a1d30649629515e4402612921205b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/atom: Check kcalloc() for WS buffer in amdgpu_atom_execute_table_locked()
kcalloc() may fail. When WS is non-zero and allocation fails, ectx.ws remains NULL while ectx.ws_size is set, leading to a potential NULL pointer dereference in atom_get_src_int() when accessing WS entries.
Return -ENOMEM on allocation failure to avoid the NULL dereference.
From the CVE record · Linux
The Linux kernel’s amdgpu atom code may dereference a NULL pointer if a work-space buffer allocation fails while the requested work-space size is nonzero. The input does not specify whether an attacker can trigger this condition, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the amdgpu driver should check their versions; affected versions are not specified.