CVE Catalog

CVE-2021-4460

HighCVSS 7.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.15%

5th percentile - higher than 5% of all known CVEs

Summary

In the Linux kernel, a UBSAN shift-out-of-bounds warning in the drm/amdkfd driver was fixed. When the number of SDMA queues or XGMI SDMA queues is 0, the shift operation is undefined. The fix sets the value to ULLONG_MAX if the count is >= number of bits in the operand.

Risk Assessment

Undefined behavior could lead to unpredictable errors or system crashes, especially on systems with AMD GPUs.

Recommendation

Update the Linux kernel to a version containing the fix.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS