{"id":"CVE-2024-27045","state":"PUBLISHED","title":"drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'\n\nTell snprintf() to store at most 10 bytes in the output buffer\ninstead of 30.\n\nFixes the below:\ndrivers/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","publishedAt":"2024-05-01T12:54:18.138Z","updatedAt":"2026-08-05T11:29:12.070Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"ff28893c96c5e0927a4da10cd24a3522ca663515","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"440f059837418fac1695b65d3ebc6080d33be877","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"d346b3e5b25c95d504478507eb867cd3818775ab","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"ad76fd30557d6a106c481e4606a981221ca525f7","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"eb9327af3621d26b1d83f767c97a3fe8191a3a65","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"cf114d8d4a8d78df272116a745bb43b48cef65f4","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"4b09715f1504f1b6e8dff0e9643630610bc05141","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.214","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.153","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.83","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c"]}],"references":["https://git.kernel.org/stable/c/ff28893c96c5e0927a4da10cd24a3522ca663515","https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877","https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab","https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7","https://git.kernel.org/stable/c/eb9327af3621d26b1d83f767c97a3fe8191a3a65","https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4","https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141","https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27045.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-27045","state":"PUBLISHED","datePublished":"2024-05-01T12:54:18.138Z","dateUpdated":"2026-08-05T11:29:12.070Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.213Z"},"containers":{"cna":{"title":"drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'\n\nTell snprintf() to store at most 10 bytes in the output buffer\ninstead of 30.\n\nFixes the below:\ndrivers/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"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"ff28893c96c5e0927a4da10cd24a3522ca663515","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"440f059837418fac1695b65d3ebc6080d33be877","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"d346b3e5b25c95d504478507eb867cd3818775ab","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"ad76fd30557d6a106c481e4606a981221ca525f7","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"eb9327af3621d26b1d83f767c97a3fe8191a3a65","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"cf114d8d4a8d78df272116a745bb43b48cef65f4","versionType":"git"},{"version":"c06e09b76639657f284bfaf1cce29557a2515e85","status":"affected","lessThan":"4b09715f1504f1b6e8dff0e9643630610bc05141","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.214","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.153","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.83","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ff28893c96c5e0927a4da10cd24a3522ca663515"},{"url":"https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877"},{"url":"https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab"},{"url":"https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7"},{"url":"https://git.kernel.org/stable/c/eb9327af3621d26b1d83f767c97a3fe8191a3a65"},{"url":"https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4"},{"url":"https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is a debugfs `.read` handler reached only by opening and reading /sys/kernel/debug/dri/N/DP-X/dsc_clock_en through the local VFS. There is no network, adjacent-network, or physical path into `dp_dsc_clock_en_read()`.\nAC:H - The overflow can only occur if `dsc_state.dsc_clock_en` formats to 10 or more characters, but that value is extracted from the DSC_TOP_CONTROL.DSC_CLOCK_EN register whose mask is 0x00000001 on every ASIC generation, so it is always 0 or 1 — a bound the attacker cannot influence. Triggering the mis-sized `snprintf()` is trivial, but making it actually write out of bounds depends on hardware register state entirely outside attacker control.\nPR:L - The node is created with mode 0644 and requires no capability check in the read path, so any local account able to traverse debugfs can reach it — the norm on Android, ChromeOS, embedded graphics stacks and IGT/debug setups that grant a non-root graphics account access to /sys/kernel/debug/dri. This matches the PR:L already assigned to the analogous amdgpu debugfs read in CVE-2024-35795.\nUI:N - The attacker simply reads the file; no victim action, modeset, or privileged helper invocation is needed. The DisplayPort/eDP connector node exists automatically whenever the amdgpu display driver has bound to the GPU.\nS:U - The affected `rd_buf` allocation and any resulting slab corruption live entirely within the kernel's own security authority. No VM, hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - Under the potential-overflow framing, the mis-sized `snprintf()` bound permits a heap out-of-bounds write past a 10-byte kcalloc allocation, and per scoring guidance memory corruption of this kind is treated as leverageable for kernel information disclosure. The read-back loop itself is bounded by `rd_buf_size` and the buffer is zeroed by kcalloc, so there is no direct read primitive.\nI:H - An out-of-bounds heap write is scored as High integrity impact, since corruption of slab contents beyond the allocated 10 bytes is the classic primitive for control-flow hijacking. The written bytes are the ASCII rendering of a kernel-controlled value rather than attacker-chosen data, which limits practical exploitability.\nA:H - Writing past the end of the kmalloc'd buffer corrupts allocator state adjacent to the object and trips redzone/KASAN out-of-bounds checks, either of which results in a kernel oops or panic. Any such heap corruption is scored as a full availability loss."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:29:12.070Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.10.214"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.15.153"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.1.83"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.6.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.7.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.8.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/ff28893c96c5e0927a4da10cd24a3522ca663515","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eb9327af3621d26b1d83f767c97a3fe8191a3a65","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:21:05.892Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-27045","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:44:14.603651Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:32.475Z"}}]}}}