CVE-2021-4460: drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
If getnumsdmaqueues or getnumxgmisdmaqueues is 0, we end up doing a shift operation where the number of bits shifted equals number of bits in the operand. This behaviour is undefined.
Set numsdmaqueues or numxgmisdmaqueues to ULLONGMAX, if the count is >= number of bits in the operand.
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1472
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Fixed in ULLONG_MAX
Event History
Frequently Asked Questions
What is the severity of CVE-2021-4460?
CVE-2021-4460 has a medium severity rating due to potential denial of service risks.
How do I fix CVE-2021-4460?
To fix CVE-2021-4460, update your Linux kernel to the latest stable version that addresses this vulnerability.
Which versions of the Linux kernel are affected by CVE-2021-4460?
CVE-2021-4460 affects specific versions of the Linux kernel where the vulnerability was present before it was patched.
What types of systems are vulnerable to CVE-2021-4460?
Any systems running the affected versions of the Linux kernel, particularly those using AMD graphics drivers are vulnerable to CVE-2021-4460.
What kind of exploit does CVE-2021-4460 represent?
CVE-2021-4460 represents a shift-out-of-bounds vulnerability that could lead to unexpected behavior or system crashes.