CVE-2021-4460

drm/amdkfd: Fix UBSAN shift-out-of-bounds warning

HIGH
7.1
CVSS Score
Published: October 1, 2025 at 11:45 AM UTC
Updated: August 11, 2026 at 03:37 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.1185.11 ≤ v < 5.11.205.12 ≤ v < 5.12.35.4 ≤ v < 5.10.365.4 ≤ v < 5.11.205.4 ≤ v < 5.12.35.4 ≤ v < 5.135.4 ≤ v < 5.4.1185.5 ≤ v < 5.10.3635cdc81bfa94d10373ecae279f3c48ca858ac4fd5.4
Vendor states this is fixed in 0c0356ef2498c1a250fe3846f30293f828737309 (fixed)
Vendor states this is fixed in 1874b0ef1426b873de94c61861e38f29a8df714c (fixed)
Vendor states this is fixed in 3fdc5182700910a685d23df57d65166e8556a266 (fixed)
Vendor states this is fixed in 50e2fc36e72d4ad672032ebf646cecb48656efe0 (fixed)
Vendor states this is fixed in 9069b1b542de8f3bbffef868aff41521b21485cf (fixed)
Vendor states this is fixed in 5.10.36 (unaffected)
Vendor states this is fixed in 5.11.20 (unaffected)
Vendor states this is fixed in 5.12.3 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4 (unaffected)
Vendor states this is fixed in 5.4.118 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.1HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card