# CVE-2024-27045: drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2024-05-01T12:54:18.138Z
- Modified: 2026-08-05T11:29:12.070Z
- Weaknesses: CWE-120
- 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 a potential buffer overflow in 'dp_dsc_clock_en_read()'

Tell snprintf() to store at most 10 bytes in the output buffer
instead of 30.

Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:1508 dp_dsc_clock_en_read() error: snprintf() is printing too much 30 vs 10

(As written by CVE List.)

## Affected

- Linux Linux: from c06e09b76639657f284bfaf1cce29557a2515e85 before ff28893c96c5e0927a4da10cd24a3522ca663515; from c06e09b76639657f284bfaf1cce29557a2515e85 before 440f059837418fac1695b65d3ebc6080d33be877; from c06e09b76639657f284bfaf1cce29557a2515e85 before d346b3e5b25c95d504478507eb867cd3818775ab; from c06e09b76639657f284bfaf1cce29557a2515e85 before ad76fd30557d6a106c481e4606a981221ca525f7; from c06e09b76639657f284bfaf1cce29557a2515e85 before eb9327af3621d26b1d83f767c97a3fe8191a3a65; from c06e09b76639657f284bfaf1cce29557a2515e85 before cf114d8d4a8d78df272116a745bb43b48cef65f4; from c06e09b76639657f284bfaf1cce29557a2515e85 before 4b09715f1504f1b6e8dff0e9643630610bc05141; 5.9 (not affected: before 5.9; from 5.10.214 up to 5.10.*; from 5.15.153 up to 5.15.*; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.9 before 5.10.214; from 5.11 before 5.15.153; from 5.16 before 6.1.83; from 6.2 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/ff28893c96c5e0927a4da10cd24a3522ca663515> (patch)
- <https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877> (patch)
- <https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab> (patch)
- <https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7> (patch)
- <https://git.kernel.org/stable/c/eb9327af3621d26b1d83f767c97a3fe8191a3a65> (patch)
- <https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4> (patch)
- <https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-27045 · Whole record: https://cve.day/CVE-2024-27045.json · Rebuilt by cve.day 2026-11-25T22:58:39.794Z
