Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.214, 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2
CVEs
CVE-2024-27045
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 19:51 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 1 May 2024, 12:54 UTC

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

osv:CVE-2024-27045

Kernel

Fixed versions: 5.10.214, 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2

Complete source record
{
  "id": "d099d9f37ab0e6cc1fe80c83f46bec1b31c321125f5de699adbfdda07f8cc831",
  "url": "https://osv.dev/vulnerability/CVE-2024-27045",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'",
    "summary": "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",
    "evidence": "osv:CVE-2024-27045",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.214",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.153",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.83",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-27045",
      "aliases": [
        "CVE-2024-27045"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c06e09b76639657f284bfaf1cce29557a2515e85"
                },
                {
                  "fixed": "ff28893c96c5e0927a4da10cd24a3522ca663515"
                },
                {
                  "fixed": "440f059837418fac1695b65d3ebc6080d33be877"
                },
                {
                  "fixed": "d346b3e5b25c95d504478507eb867cd3818775ab"
                },
                {
                  "fixed": "ad76fd30557d6a106c481e4606a981221ca525f7"
                },
                {
                  "fixed": "eb9327af3621d26b1d83f767c97a3fe8191a3a65"
                },
                {
                  "fixed": "cf114d8d4a8d78df272116a745bb43b48cef65f4"
                },
                {
                  "fixed": "4b09715f1504f1b6e8dff0e9643630610bc05141"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27045.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.9.0"
                },
                {
                  "fixed": "5.10.214"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.153"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.83"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27045.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.194674649Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877",
        "https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141",
        "https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7",
        "https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4",
        "https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab",
        "https://git.kernel.org/stable/c/eb9327af3621d26b1d83f767c97a3fe8191a3a65",
        "https://git.kernel.org/stable/c/ff28893c96c5e0927a4da10cd24a3522ca663515",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27045.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-27045",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27045.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-27045",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489422,
  "published_at": "2024-05-01T12:54:18.138+00:00"
}