What’s Vulnerable › Vulnerabilities

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

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.176, 5.15.104, 6.1.21, 6.2.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-53077 or the next vulnerability affects your stack