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

Published May 1, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Fix a potential buffer overflow in 'dpdscclockenread()'

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

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

Affected Software

7 affected componentsFixes available
Linux Linux kernel>=5.9<5.10.214
Linux Linux kernel>=5.11<5.15.153
Linux Linux kernel>=5.16<6.1.83
Linux Linux kernel>=6.2<6.6.23
Linux Linux kernel>=6.7<6.7.11
Linux Linux kernel>=6.8<6.8.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Configuration

    In drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c at function dp_dsc_clock_en_read() (line 1508), modify the snprintf() call so it stores at most 10 bytes in the output buffer (instead of 30) to prevent a potential buffer overflow.

    Linux kernel (drm/amd/display) snprintf() output length in dp_dsc_clock_en_read() = store at most 10 bytes in the output buffer instead of 30

Event History

May 1, 2024
CVE Published
via MITRE·12:54 PM
Data Sourced
via MITRE·12:54 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:11 AM
Description
May 6, 2025
Data Sourced
via Ubuntu·02:24 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27045?

CVE-2024-27045 has been classified with moderate severity due to the potential buffer overflow in the Linux kernel.

2

How do I fix CVE-2024-27045?

To fix CVE-2024-27045, update to the patched kernel version such as 5.10.223-1 or newer.

3

Which versions of the Linux kernel are affected by CVE-2024-27045?

CVE-2024-27045 affects Linux kernel versions between 5.9 and 6.8.2.

4

What is the nature of the vulnerability in CVE-2024-27045?

CVE-2024-27045 is a buffer overflow vulnerability found in 'dp_dsc_clock_en_read()' within the Linux kernel.

5

Is CVE-2024-27045 present in Debian Linux?

Yes, Debian Linux contains the CVE-2024-27045 vulnerability in its affected kernel versions prior to the fixed versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203