Local privilege escalation via snprintf length miscalculation
Published Oct 29, 2024 · Updated Aug 5, 2026
Out-of-bounds access in Linux parport allows local users to disclose or corrupt kernel memory by reading an autoprobe procfs file. The do_autoprobe function adds snprintf return values to a 256-byte buffer offset after output truncation, then uses the oversized length for further writes and a memcpy to userspace. Exploitation requires an attached parallel-port peripheral with a device ID exceeding 256 bytes; the stack overwrite can panic the kernel or enable control-flow hijacking.
Summary
What happened
Out-of-bounds access in Linux parport allows local users to disclose or corrupt kernel memory by reading an autoprobe procfs file. The do_autoprobe function adds snprintf return values to a 256-byte buffer offset after output truncation, then uses the oversized length for further writes and a memcpy to userspace. Exploitation requires an attached parallel-port peripheral with a device ID exceeding 256 bytes; the stack overwrite can panic the kernel or enable control-flow hijacking.
The record
- CVE
- CVE-2024-50074
- Published
- Oct 29, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 29, 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=166a0bddcc27de41fe13f861c8348e8e53e988c8 <8aadef73ba3b325704ed5cfc4696a25c350182cf
- Affected versionversion=4.19.320 <4.19.323
- Affected versionversion=47b3dce100778001cd76f7e9188944b5cb27a76d <b0641e53e6cb937487b6cfb15772374f0ba149b3
- Affected versionversion=5.10.224 <5.10.228
- Affected versionversion=5.15.165 <5.15.169
- Affected versionversion=5.4.282 <5.4.285
- Affected versionversion=6.10.3 <6.11
- Affected versionversion=6.11
- Affected versionversion=6.1.103 <6.1.114
- Affected versionversion=6.6.44 <6.6.58
- Affected versionversion=7789a1d6792af410aa9b39a1eb237ed24fa2170a
- Affected versionversion=7f4da759092a1a6ce35fb085182d02de8cc4cc84 <fca048f222ce9dcbde5708ba2bf81d85a4a27952
- Affected versionversion=a44f88f7576bc1916d8d6293f5c62fbe7cbe03e0 <1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa
- Affected versionversion=ab11dac93d2d568d151b1918d7b84c2d02bacbd5 <02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9
- Affected versionversion=ab11dac93d2d568d151b1918d7b84c2d02bacbd5 <2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6
- Affected versionversion=b579ea3516c371ecf59d073772bc45dfd28c8a0e <66029078fee00646e2e9dbb8f41ff7819f8e7569
- Affected versionversion=c719b393374d3763e64900ee19aaed767d5a08d6 <440311903231c6e6c9bcf8acb6a2885a422e00bc
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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.
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