CVE-2023-53077 drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes
A shift-out-of-bounds error in the AMD display driver can cause a kernel warning or potential crash when PTEBufferSizeInRequests is zero.
- 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-2023-53077?
CVE-2023-53077 is a high-severity vulnerability in Linux kernel, published on 2 May 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/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.
Weakness: CWE-787
Which versions are affected by CVE-2023-53077?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53077?
Apply the vendor's patch.
Is CVE-2023-53077 being exploited?
There is no known exploitation of CVE-2023-53077 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53077, DEBIAN-CVE-2023-53077, GHSA-89m2-2g6w-whvw, UBUNTU-CVE-2023-53077.