Arbitrary code execution via reused GetVariable size
Published Nov 21, 2022 · Updated Apr 30, 2025
Stack buffer overflow in InsydeH2O kernel 5.0 through 5.5 allows physically proximate attackers to execute arbitrary code during DXE. The BdsDxe function initializes DataSize only before the first of three GetVariable calls, so one variable enlarges it and the next call overwrites a one-byte stack buffer and the return address. Exploitation requires physical SPI-flash access to alter at least two normally read-only UEFI variables and yields firmware-level code execution that can persist across an operating-system boot.
Summary
What happened
Stack buffer overflow in InsydeH2O kernel 5.0 through 5.5 allows physically proximate attackers to execute arbitrary code during DXE. The BdsDxe function initializes DataSize only before the first of three GetVariable calls, so one variable enlarges it and the next call overwrites a one-byte stack buffer and the return address. Exploitation requires physical SPI-flash access to alter at least two normally read-only UEFI variables and yields firmware-level code execution that can persist across an operating-system boot.
The record
- CVE
- CVE-2022-35897
- Published
- Nov 21, 2022
- Updated
- Apr 30, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-787, T1542.001
- Attack vector
- physical
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 21, 2022CVE publishedPublication date reported by the CVE source.
- Apr 30, 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?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
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