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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-05-02T15:55:27.613Z
- Modified: 2026-11-05T21:17:11.350Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6725a88f88a7e922e91c45bf83d320487810c192 before 7257070be70e19a9138f39009c1a26c83a8a7cfa; from 6725a88f88a7e922e91c45bf83d320487810c192 before bec1bea2fa974e63f6059c33edde669c7894d0bc; from 6725a88f88a7e922e91c45bf83d320487810c192 before a16394b5d661afec9a264fecac3abd87aea439ea; from 6725a88f88a7e922e91c45bf83d320487810c192 before e12b95680821b9880cd9992c0f3555389363604f; from 6725a88f88a7e922e91c45bf83d320487810c192 before 031f196d1b1b6d5dfcb0533b431e3ab1750e6189; 5.9 (not affected: before 5.9; from 5.10.176 up to 5.10.*; from 5.15.104 up to 5.15.*; from 6.1.21 up to 6.1.*; from 6.2.8 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 5.9 before 5.10.176; from 5.11 before 5.15.104; from 5.16 before 6.1.21; from 6.2 before 6.2.8

## References

- <https://git.kernel.org/stable/c/7257070be70e19a9138f39009c1a26c83a8a7cfa> (patch)
- <https://git.kernel.org/stable/c/bec1bea2fa974e63f6059c33edde669c7894d0bc> (patch)
- <https://git.kernel.org/stable/c/a16394b5d661afec9a264fecac3abd87aea439ea> (patch)
- <https://git.kernel.org/stable/c/e12b95680821b9880cd9992c0f3555389363604f> (patch)
- <https://git.kernel.org/stable/c/031f196d1b1b6d5dfcb0533b431e3ab1750e6189> (patch)

## Sources

- CVE List: [CVE-2023-53077](https://www.cve.org/CVERecord?id=CVE-2023-53077), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2023-53077](https://nvd.nist.gov/vuln/detail/CVE-2023-53077), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2023-53077 · Whole record: https://cve.day/CVE-2023-53077.json · Rebuilt by cve.day 2026-11-25T22:58:34.653Z
