Freely Allocate Buffer on The Stack With Data From Socket
LF-Edge, Zededa EVE OS
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lf-edge/eve Go |
|
|
Original description
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.