Lucene search

K
vulnrichmentASRGVULNRICHMENT:CVE-2023-43632
HistorySep 21, 2023 - 1:13 p.m.

CVE-2023-43632 Freely Allocate Buffer on The Stack With Data From Socket

2023-09-2113:13:30
CWE-789
ASRG
github.com
vtpm
stack buffer overflow
protobuf
server
security vulnerability
buffer allocation
overflow
remote exploit

CVSS3

9

Attack Vector

ADJACENT

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

AI Score

7

Confidence

Low

EPSS

0.001

Percentile

38.6%

SSVC

Exploitation

none

Automatable

no

Technical Impact

total

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 “vtpm_server” process
    which has very high privileges.

ADP Affected

[
  {
    "cpes": [
      "cpe:2.3:o:lfedge:eve:*:*:*:*:*:*:*:*"
    ],
    "vendor": "lfedge",
    "product": "eve",
    "versions": [
      {
        "status": "affected",
        "version": "3.0.0",
        "lessThan": "9.5.0",
        "versionType": "custom"
      }
    ],
    "defaultStatus": "unknown"
  }
]

CVSS3

9

Attack Vector

ADJACENT

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

AI Score

7

Confidence

Low

EPSS

0.001

Percentile

38.6%

SSVC

Exploitation

none

Automatable

no

Technical Impact

total

Related for VULNRICHMENT:CVE-2023-43632