drm/amdgpu: add upper bound check on user inputs in wait ioctl
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 |
|
|
6.18.196.19.97.0In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: add upper bound check on user inputs in wait ioctl
Huge input values in amdgpu_userq_wait_ioctl can lead to a OOM and could be exploited.
So check these input value against AMDGPU_USERQ_MAX_HANDLES which is big enough value for genuine use cases and could potentially avoid OOM.
v2: squash in Srini's fix
(cherry picked from commit fcec012c664247531aed3e662f4280ff804d1476)
From the CVE record · Linux
The Linux kernel's amdgpu wait ioctl lacks an upper-bound check on user-supplied values. A local user able to call the ioctl could supply huge values that lead to an out-of-memory condition; the input does not specify an authentication requirement or additional user interaction.
Operators running the Linux kernel with amdgpu should check their installations; affected versions are not specified.