Local kernel compromise via unchecked ioctl length
Published Oct 22, 2025 · Updated Oct 22, 2025
Stack buffer overflow in the Linux kernel allows local users to corrupt kernel memory through the CROS_EC_DEV_IOCRDMEM ioctl. The cros_ec_chardev_ioctl_readmem handler passes attacker-controlled s_mem.bytes to cmd_readmem without checking it against the fixed s_mem.buffer size. Access to /dev/cros_ec is required; an oversized read writes beyond the kernel stack buffer, enabling a kernel crash or host compromise.
Summary
What happened
Stack buffer overflow in the Linux kernel allows local users to corrupt kernel memory through the CROS_EC_DEV_IOCRDMEM ioctl. The cros_ec_chardev_ioctl_readmem handler passes attacker-controlled s_mem.bytes to cmd_readmem without checking it against the fixed s_mem.buffer size. Access to /dev/cros_ec is required; an oversized read writes beyond the kernel stack buffer, enabling a kernel crash or host compromise.
The record
- CVE
- CVE-2022-50570
- Published
- Oct 22, 2025
- Updated
- Oct 22, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 22, 2025CVE publishedPublication date reported by the CVE source.
- Oct 22, 2025Record 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.4
- Affected versionversion=eda2e30c6684d67288edb841c6125d48c608a242 <0c2e18924504208644d18415667895a4ac54cf2a
- Affected versionversion=eda2e30c6684d67288edb841c6125d48c608a242 <868fc93b615b9f6c2b0b1894536618fa6cd66acc
- Affected versionversion=eda2e30c6684d67288edb841c6125d48c608a242 <8a07b45fd3c2dda24fad43639be5335a4595196a
- Affected versionversion=eda2e30c6684d67288edb841c6125d48c608a242 <e548f9503c4b3292a60a63fe77dccea62999a35a
- Affected versionversion=eda2e30c6684d67288edb841c6125d48c608a242 <f143f1d9a8e5c6c9db3de81ca270191226fcce36
- Affected versionversion=eda2e30c6684d67288edb841c6125d48c608a242 <fd1d3b265784a2243fcaef06aebfb2f8ee733cec
What conditions does exploitation require?
What is affected?
Published CVSS scores
No CVSS assessment is available in this record.
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.
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