drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Partial Red Hat: 5 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.4 and later | 5.4.118, 5.10.36, 5.11.20, 5.12.3, 5.13 | Patch available | CNA |
- Linux VendorLinux Affected 5.4 and later Fixed in 5.4.118, 5.10.36, 5.11.20, 5.12.3, 5.13 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | before 5.4.118; 5.5 to before 5.10.36; 5.11 to before 5.11.20; 5.12 to before 5.12.3 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions before 5.4.118; 5.5 to before 5.10.36; 5.11 to before 5.11.20; 5.12 to before 5.12.3 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.4.118, 5.10.36, 5.11.20, 5.12.3, 5.13
Red Hat 3 advisories
- RHSA-2026:7003 Released 2026-04-08 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux BaseOS AUS (v.8.4) bpftool-4.18.0-305.188.1.el8_4, kernel-4.18.0-305.188.1.el8_4, kernel-abi-stablelists-4.18.0-305.188.1.el8_4 +14
- Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) bpftool-4.18.0-305.188.1.el8_4, kernel-4.18.0-305.188.1.el8_4, kernel-abi-stablelists-4.18.0-305.188.1.el8_4 +14
- RHSA-2026:6953 Released 2026-04-08 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux BaseOS AUS (v. 8.2) bpftool-4.18.0-193.193.1.el8_2, kernel-4.18.0-193.193.1.el8_2, kernel-abi-whitelists-4.18.0-193.193.1.el8_2 +14
- RHSA-2022:1988 Released 2022-05-10 · Red Hat rating Importantkernel security, bug fix, and enhancement update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-372.9.1.el8, kernel-4.18.0-372.9.1.el8, kernel-abi-stablelists-4.18.0-372.9.1.el8 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-372.9.1.el8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2022:1988 |
| Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | Fixed | RHSA-2026:6953 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.4) | Fixed | RHSA-2026:7003 |
| Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) | Fixed | RHSA-2026:7003 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2022:1988 |
Not affected: 4 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-4460
- 2026-10-03 Alias added: GHSA-qxqc-pxc7-f648
References
Patch 5
- https://git.kernel.org/stable/c/0c0356ef2498c1a250fe3846f30293f828737309
- https://git.kernel.org/stable/c/1874b0ef1426b873de94c61861e38f29a8df714c
- https://git.kernel.org/stable/c/3fdc5182700910a685d23df57d65166e8556a266
- https://git.kernel.org/stable/c/9069b1b542de8f3bbffef868aff41521b21485cf
- https://git.kernel.org/stable/c/50e2fc36e72d4ad672032ebf646cecb48656efe0
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2021-4460 · CVE Program
- CVE-2021-4460 · NVD
- FIRST EPSS
- GHSA-qxqc-pxc7-f648 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-4460 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences