CVE-2023-53077
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
02/05/2025
Last modified:
05/05/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes<br />
<br />
[WHY]<br />
When PTEBufferSizeInRequests is zero, UBSAN reports the following<br />
warning because dml_log2 returns an unexpected negative value:<br />
<br />
shift exponent 4294966273 is too large for 32-bit type &#39;int&#39;<br />
<br />
[HOW]<br />
<br />
In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and<br />
assign the result directly.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/031f196d1b1b6d5dfcb0533b431e3ab1750e6189
- https://git.kernel.org/stable/c/7257070be70e19a9138f39009c1a26c83a8a7cfa
- https://git.kernel.org/stable/c/a16394b5d661afec9a264fecac3abd87aea439ea
- https://git.kernel.org/stable/c/bec1bea2fa974e63f6059c33edde669c7894d0bc
- https://git.kernel.org/stable/c/e12b95680821b9880cd9992c0f3555389363604f