Bug 2363752 (CVE-2023-53077) - CVE-2023-53077 kernel: drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
Summary: CVE-2023-53077 kernel: drm/amd/display: fix shift-out-of-bounds in CalculateV...
Keywords:
Status: NEW
Alias: CVE-2023-53077
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-05-02 16:04 UTC by OSIDB Bzimport
Modified: 2025-05-05 04:47 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-02 16:04:19 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes

[WHY]
When PTEBufferSizeInRequests is zero, UBSAN reports the following
warning because dml_log2 returns an unexpected negative value:

  shift exponent 4294966273 is too large for 32-bit type 'int'

[HOW]

In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and
assign the result directly.

Comment 1 Avinash Hanwate 2025-05-05 04:35:21 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050215-CVE-2023-53077-4075@gregkh/T


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