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

Published Oct 1, 2025
·
Updated

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

5 affected components
Linux Kernel
Linux Linux kernel<5.4.118
Linux Linux kernel>=5.5<5.10.36
Linux Linux kernel>=5.11<5.11.20
Linux Linux kernel>=5.12<5.12.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in ULLONG_MAX

Event History

Oct 1, 2025
CVE Published
via MITRE·11:45 AM
Data Sourced
via MITRE·11:45 AM
Description
Data Sourced
via Red Hat·12:04 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-4460?

CVE-2021-4460 has a medium severity rating due to potential denial of service risks.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203