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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6725a88f88a7e922e91c45bf83d320487810c192 to < 7257070be70e19a9138f39009c1a26c83a8a7cfaaffected6725a88f88a7e922e91c45bf83d320487810c192 to < bec1bea2fa974e63f6059c33edde669c7894d0bcaffected6725a88f88a7e922e91c45bf83d320487810c192 to < a16394b5d661afec9a264fecac3abd87aea439eaaffected6725a88f88a7e922e91c45bf83d320487810c192 to < e12b95680821b9880cd9992c0f3555389363604faffected6725a88f88a7e922e91c45bf83d320487810c192 to < 031f196d1b1b6d5dfcb0533b431e3ab1750e6189affected
Linux Linux
Default version status: affected
5.9affected0 to < 5.9unaffected5.10.176 to ≤ 5.10.*unaffected5.15.104 to ≤ 5.15.*unaffected6.1.21 to ≤ 6.1.*unaffected6.2.8 to ≤ 6.2.*unaffected6.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7257070be70e19a9138f39009c1a26c83a8a7cfa ↗
- https://git.kernel.org/stable/c/bec1bea2fa974e63f6059c33edde669c7894d0bc ↗
- https://git.kernel.org/stable/c/a16394b5d661afec9a264fecac3abd87aea439ea ↗
- https://git.kernel.org/stable/c/e12b95680821b9880cd9992c0f3555389363604f ↗
- https://git.kernel.org/stable/c/031f196d1b1b6d5dfcb0533b431e3ab1750e6189 ↗