CVE-2021-4460 json
drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
published 2025-10-01 13 mo ago modified 2026-08-11 2 mo ago also EUVD-2025-32863
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 6%
- public exploits
- 0
- none known
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
Patch / fix
- Linux Linux 5.4.118, 5.10.36, 5.11.20, 5.12.3, 5.13
- linux Debian 14, Debian 13, Debian 12 5.10.38-1
debian advisories DEBIAN-CVE-2021-4460
- linux Ubuntu 20.04 LTS 5.4.0-77.86
- linux-aws Ubuntu 20.04 LTS 5.4.0-1051.53
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1046.49
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1041.42
- linux-azure Ubuntu 20.04 LTS 5.4.0-1051.53
- linux-raspi Ubuntu 20.04 LTS 5.4.0-1038.41
- linux-oracle Ubuntu 20.04 LTS 5.4.0-1048.52
- linux-aws-5.4 Ubuntu 18.04 LTS 5.4.0-1051.53~18.04.1
ubuntu advisories UBUNTU-CVE-2021-4460
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 8 4.18.0-372.9.1.el8
- perf RHEL 8 4.18.0-372.9.1.el8
- bpftool RHEL 8 4.18.0-372.9.1.el8
- kernel-core RHEL 8 4.18.0-372.9.1.el8
- kernel-tools RHEL 8 4.18.0-372.9.1.el8
- python3-perf RHEL 8 4.18.0-372.9.1.el8
- kernel-modules RHEL 8 4.18.0-372.9.1.el8
- kernel-zfcpdump RHEL 8 4.18.0-372.9.1.el8
red hat advisories RHSA-2026:7003RHSA-2026:6953RHSA-2022:1988
- kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.221.1
- kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.221.1
- kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.221.1
- kernel-default SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +5 more 5.3.18-150300.59.221.1
- kernel-preempt SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.221.1
- kernel-obs-build SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.221.1
- kernel-default-base SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 5.3.18-150300.59.221.1.150300.18.132.1
- kernel-rt SLE Micro 5.2, SLE Micro 5.1 5.3.18-150300.223.1
suse advisories SUSE-SU-2025:4189-1SUSE-SU-2025:03626-1SUSE-SU-2025:03613-1
- git.kernel.org/stable/c/0c0356ef2498c1a250fe3846f30293f828737309 commit
- git.kernel.org/stable/c/1874b0ef1426b873de94c61861e38f29a8df714c commit
- git.kernel.org/stable/c/3fdc5182700910a685d23df57d65166e8556a266 commit
- git.kernel.org/stable/c/9069b1b542de8f3bbffef868aff41521b21485cf commit
- git.kernel.org/stable/c/50e2fc36e72d4ad672032ebf646cecb48656efe0 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-4460 updated cvss 5.5
kernel: Linux kernel: integer overflow and information disclosure via undefined shift operation in drm/amdkfd
-
Red Hat Enterprise Linux 8 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +6 moreaffected: workaround, no fix available “Fix deferred”
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-372.9.1.el8, kernel 4.18.0-372.9.1.el8, bpftool 4.18.0-372.9.1.el8, kernel-core 4.18.0-372.9.1.el8, kernel-tools 4.18.0-372.9.1.el8, python3-perf 4.18.0-372.9.1.el8, +15 morefixed: vendor fix RHSA-2022:1988
-
Red Hat Enterprise Linux BaseOS AUS (v. 8.2) perf 4.18.0-193.193.1.el8_2, kernel 4.18.0-193.193.1.el8_2, bpftool 4.18.0-193.193.1.el8_2, kernel-core 4.18.0-193.193.1.el8_2, kernel-tools 4.18.0-193.193.1.el8_2, python3-perf 4.18.0-193.193.1.el8_2, +8 morefixed: vendor fix RHSA-2026:6953
-
Red Hat Enterprise Linux BaseOS AUS (v.8.4) perf 4.18.0-305.188.1.el8_4, kernel 4.18.0-305.188.1.el8_4, bpftool 4.18.0-305.188.1.el8_4, kernel-core 4.18.0-305.188.1.el8_4, kernel-tools 4.18.0-305.188.1.el8_4, python3-perf 4.18.0-305.188.1.el8_4, +8 more Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) perf 4.18.0-305.188.1.el8_4, kernel 4.18.0-305.188.1.el8_4, bpftool 4.18.0-305.188.1.el8_4, kernel-core 4.18.0-305.188.1.el8_4, kernel-tools 4.18.0-305.188.1.el8_4, python3-perf 4.18.0-305.188.1.el8_4, +8 morefixed: vendor fix RHSA-2026:7003
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-372.9.1.el8, kernel-debuginfo-common-aarch64 4.18.0-372.9.1.el8, kernel-debuginfo-common-ppc64le 4.18.0-372.9.1.el8fixed: vendor fix RHSA-2022:1988
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 6% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/0c0356ef2498c1a250fe3846f30293f828737309
patch
-
git.kernel.org
/stable/c/1874b0ef1426b873de94c61861e38f29a8df714c
patch
-
git.kernel.org
/stable/c/3fdc5182700910a685d23df57d65166e8556a266
patch
-
git.kernel.org
/stable/c/9069b1b542de8f3bbffef868aff41521b21485cf
patch
-
git.kernel.org
/stable/c/50e2fc36e72d4ad672032ebf646cecb48656efe0
patch
Sources
- CVE List CVE-2021-4460
- NVD CVE-2021-4460
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.