Code execution via unchecked encrypted GTK length
Published Jun 4, 2021 · Updated Aug 4, 2024
A stack buffer overflow in Realtek RTL8710C and RTL8195A firmware allows attackers to execute code via a crafted WPA2 handshake. DecGTK passes an attacker-controlled 16-bit encrypted GTK length of up to 0xFFFF to AES_UnWRAP, which writes into the fixed 0x101-byte tmp2 stack buffer without a bounds check. Exploitation requires Wi-Fi reachability and knowledge of the network PSK; return-address overwrite grants control of the Wi-Fi module and can yield root access on the host OS.
Summary
What happened
A stack buffer overflow in Realtek RTL8710C and RTL8195A firmware allows attackers to execute code via a crafted WPA2 handshake. DecGTK passes an attacker-controlled 16-bit encrypted GTK length of up to 0xFFFF to AES_UnWRAP, which writes into the fixed 0x101-byte tmp2 stack buffer without a bounds check. Exploitation requires Wi-Fi reachability and knowledge of the network PSK; return-address overwrite grants control of the Wi-Fi module and can yield root access on the host OS.
The record
- CVE
- CVE-2020-27301
- Published
- Jun 4, 2021
- Updated
- Aug 4, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-787, T1203
- Attack vector
- adjacent
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 4, 2021CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record 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.
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
- Modified hostapd encrypted-GTK proof of conceptproof of concept · demonstrated
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