Kernel stack overwrite via stale EFI status
Published Aug 19, 2025 · Updated Jun 15, 2026
Stack-based buffer overflow in the Linux atomisp camera driver allows local users to corrupt kernel memory during device initialization. gmin_get_config_var() returns a stale success value after EFI_BUFFER_TOO_SMALL enlarges the reported length without filling the 65-byte buffer, so gmin_get_var_int() writes a terminator beyond that buffer. Reachability requires an EFI variable longer than 64 bytes and atomisp camera initialization on an Intel Bay Trail or Cherry Trail platform.
Summary
What happened
Stack-based buffer overflow in the Linux atomisp camera driver allows local users to corrupt kernel memory during device initialization. gmin_get_config_var() returns a stale success value after EFI_BUFFER_TOO_SMALL enlarges the reported length without filling the 65-byte buffer, so gmin_get_var_int() writes a terminator beyond that buffer. Reachability requires an EFI variable longer than 64 bytes and atomisp camera initialization on an Intel Bay Trail or Cherry Trail platform.
The record
- CVE
- CVE-2025-38585
- Published
- Aug 19, 2025
- Updated
- Jun 15, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 19, 2025CVE publishedPublication date reported by the CVE source.
- Jun 15, 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.12
- Affected versionversion=5.8
- Affected versionversion=a49d25364dfb9f8a64037488a39ab1f56c5fa419 <51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654
- Affected versionversion=ad85094b293e40e7a2f831b0311a389d952ebd5e <1a7a2f59fb2eb0718a0cff1e5822500cefe50ed9
- Affected versionversion=ad85094b293e40e7a2f831b0311a389d952ebd5e <3d672fe065aa00f4d66f42e3c9720f69a3ed43e7
- Affected versionversion=ad85094b293e40e7a2f831b0311a389d952ebd5e <e6d3453a002e89537e6136f6c774659b297a549b
- Affected versionversion=ad85094b293e40e7a2f831b0311a389d952ebd5e <ee4cf798202d285dcbe85e4467a094c44f5ed8e6
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