CVE-2023-43632: Freely Allocate Buffer on The Stack With Data From Socket
Impact
VTPM server listens on port 8877, exposing limited TPM functionality. The server reads 4 bytes as a uint32 size header, then allocates that amount on the stack for incoming data. This allows Denial of Service attacks against the vTPM service.
An workload (a container or VM) running on EVE-OS can use this to generate a DOS against the vTPM service.
Patches
Fixed in 9.4.3-lts and 10.1.0
Workarounds
None
Other sources
As noted in the “VTPM.md” file in the eve documentation, “VTPM is a server listening on port 8877 in EVE, exposing limited functionality of the TPM to the clients. VTPM allows clients to execute tpm2-tools binaries from a list of hardcoded options” The communication with this server is done using protobuf, and the data is comprised of 2 parts:
1. Header
2. Data
When a connection is made, the server is waiting for 4 bytes of data, which will be the header, and these 4 bytes would be parsed as uint32 size of the actual data to come.
Then, in the function “handleRequest” this size is then used in order to allocate a payload on the stack for the incoming data.
As this payload is allocated on the stack, this will allow overflowing the stack size allocated for the relevant process with freely controlled data.
An attacker can crash the system. An attacker can gain control over the system, specifically on the “vtpmserver” process which has very high privileges.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is CVE-2023-43632?
CVE-2023-43632 is a vulnerability that allows remote attackers to execute arbitrary code.
How does CVE-2023-43632 affect Linuxfoundation Edge Virtualization Engine?
CVE-2023-43632 affects Linuxfoundation Edge Virtualization Engine versions 3.0.0 to 9.5.0.
What is the severity of CVE-2023-43632?
CVE-2023-43632 has a severity rating of critical (9/10).
How can I fix CVE-2023-43632?
To fix CVE-2023-43632, update to a version of Linuxfoundation Edge Virtualization Engine that is not affected by the vulnerability.
Where can I find more information about CVE-2023-43632?
You can find more information about CVE-2023-43632 at the following reference: [link](https://asrg.io/security-advisories/freely-allocate-buffer-on-the-stack-with-data-from-socket/)