Local privilege escalation via unchecked block length
Published Jun 18, 2025 · Updated Aug 5, 2026
Out-of-bounds write in the Linux kernel cp2112 driver allows local users to corrupt kernel memory through an I2C block-read ioctl. cp2112_xfer() copies a user-controlled length of up to 255 bytes from buf into data->block[1], whose capacity is only 32 payload bytes. Exploitation requires access to a CP2112-backed /dev/i2c-N device; the overwrite can disclose data, hijack control flow, or crash the kernel.
Summary
What happened
Out-of-bounds write in the Linux kernel cp2112 driver allows local users to corrupt kernel memory through an I2C block-read ioctl. cp2112_xfer() copies a user-controlled length of up to 255 bytes from buf into data->block[1], whose capacity is only 32 payload bytes. Exploitation requires access to a CP2112-backed /dev/i2c-N device; the overwrite can disclose data, hijack control flow, or crash the kernel.
The record
- CVE
- CVE-2022-50156
- Published
- Jun 18, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 2025CVE 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=4.15
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <26e427ac85c2b8d0d108cc80b6de34d33e2780c4
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <381583845d19cb4bd21c8193449385f3fefa9caf
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <3af7d60e9a6c17d6d41c4341f8020511887d372d
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <519ff31a6ddd87aa4905bd9bf3b92e8b88801614
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <8489a20ac481b08c0391608d81ed3796d373cfdf
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <e7028944e61014ae915e7fb74963d3835f2f761a
- Affected versionversion=542134c0375b5ca2b1d18490c02b8a20bfdd8d74 <ebda3d6b004bb6127a66a616524a2de152302ca7
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