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

High 7.1 Published Updated

An undefined shift operation in the AMD KFD driver can cause a kernel crash, requiring a patch to prevent denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4460?

CVE-2021-4460 is a high-severity vulnerability in Linux kernel, published on 1 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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

Weakness: CWE-125

Which versions are affected by CVE-2021-4460?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-4460?

Apply the vendor's patch.

Is CVE-2021-4460 being exploited?

There is no known exploitation of CVE-2021-4460 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-4460, GHSA-qxqc-pxc7-f648, UBUNTU-CVE-2021-4460.

Is CVE-2021-4460 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free