Kernel memory corruption via oversized debugfs formatting
Published May 1, 2024 · Updated Aug 5, 2026
Buffer overflow in the AMD display debugfs handler in Linux allows local users to overwrite kernel memory through a debugfs read. The dp_dsc_clock_en_read() handler gives snprintf() a 30-byte limit for a 10-byte stack buffer while formatting dsc_state.dsc_clock_en. The node is reachable only through the local VFS, and overflow requires at least 10 characters even though the hardware register is one bit and outside attacker control.
Summary
What happened
Buffer overflow in the AMD display debugfs handler in Linux allows local users to overwrite kernel memory through a debugfs read. The dp_dsc_clock_en_read() handler gives snprintf() a 30-byte limit for a 10-byte stack buffer while formatting dsc_state.dsc_clock_en. The node is reachable only through the local VFS, and overflow requires at least 10 characters even though the hardware register is one bit and outside attacker control.
The record
- CVE
- CVE-2024-27045
- Published
- May 1, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-120, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 1, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.9
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <440f059837418fac1695b65d3ebc6080d33be877
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <4b09715f1504f1b6e8dff0e9643630610bc05141
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <ad76fd30557d6a106c481e4606a981221ca525f7
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <cf114d8d4a8d78df272116a745bb43b48cef65f4
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <d346b3e5b25c95d504478507eb867cd3818775ab
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <eb9327af3621d26b1d83f767c97a3fe8191a3a65
- Affected versionversion=c06e09b76639657f284bfaf1cce29557a2515e85 <ff28893c96c5e0927a4da10cd24a3522ca663515
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo