CVE-2021-4460 Details
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix UBSAN shift-out-of-bounds warning If get_num_sdma_queues or get_num_xgmi_sdma_queues 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 num_sdma_queues or num_xgmi_sdma_queues to ULLONG_MAX, if the count is >= number of bits in the operand. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1472
A vulnerability in the Linux kernel's AMD KFD (Kernel Fusion Driver) has been addressed. The issue arose because the functions 'get_num_sdma_queues' and 'get_num_xgmi_sdma_queues' could return 0, leading to a shift operation where the number of bits shifted was equal to the number of bits in the operand, creating undefined behavior. The vulnerability has been fixed by setting 'num_sdma_queues' or 'num_xgmi_sdma_queues' to ULLONG_MAX' if the count was greater than or equal to the number of bits in the operand.
Users can upgrade to the patched version of the Linux kernel where this vulnerability has been addressed. The specific commit containing the fix is '50e2fc36e72d4ad672032ebf646cecb48656efe0', which is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0c0356ef2498c1a250fe3846f30293f828737309 | kernel.org | Patch |
| https://git.kernel.org/stable/c/1874b0ef1426b873de94c61861e38f29a8df714c | kernel.org | Patch |
| https://git.kernel.org/stable/c/3fdc5182700910a685d23df57d65166e8556a266 | kernel.org | Patch |
| https://git.kernel.org/stable/c/50e2fc36e72d4ad672032ebf646cecb48656efe0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9069b1b542de8f3bbffef868aff41521b21485cf | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-125 | Out-of-bounds Read | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 5.4.118 >= 5.5, < 5.10.36 >= 5.11, < 5.11.20 >= 5.12, < 5.12.3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 11, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 10, 2025 | Initial Analysis | [email protected] |
| Oct 1, 2025 | New CVE Received | kernel.org |