Bug 2400732 (CVE-2021-4460) - CVE-2021-4460 kernel: drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
Summary: CVE-2021-4460 kernel: drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
Keywords:
Status: NEW
Alias: CVE-2021-4460
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-01 12:04 UTC by OSIDB Bzimport
Modified: 2025-10-01 22:07 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-01 12:04:16 UTC
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


Note You need to log in before you can comment on or make changes to this bug.