// For flags

CVE-2022-23645

Out-of-bounds read in swtpm

Severity Score

5.5
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

swtpm is a libtpms-based TPM emulator with socket, character device, and Linux CUSE interface. Versions prior to 0.5.3, 0.6.2, and 0.7.1 are vulnerable to out-of-bounds read. A specially crafted header of swtpm's state, where the blobheader's hdrsize indicator has an invalid value, may cause an out-of-bounds access when the byte array representing the state of the TPM is accessed. This will likely crash swtpm or prevent it from starting since the state cannot be understood. Users should upgrade to swtpm v0.5.3, v0.6.2, or v0.7.1 to receive a patch. There are currently no known workarounds.

swtpm es un emulador de TPM basado en libtpms con socket, dispositivo de caracteres e interfaz Linux CUSE. Las versiones anteriores a 0.5.3, 0.6.2 y 0.7.1, son vulnerables a una lectura fuera de límites. Un encabezado especialmente diseñado del estado de swtpm, donde el indicador hdrsize del blobheader presenta un valor no válido, puede causar un acceso fuera de límites cuando es accedido al array de bytes que representa el estado del TPM. Esto probablemente bloqueará swtpm o impedirá que sea iniciado ya que el estado no puede ser entendido. Los usuarios deben actualizar a swtpm versión v0.5.3, v0.6.2, o v0.7.1 para recibir un parche. Actualmente no se presentan medidas de mitigación conocidas

An out-of-bounds read vulnerability was found in swtpm. The vulnerability exists due to a boundary condition when the byte array representing the state of the TPM is accessed. This flaw allows an attacker to send a specially crafted header, triggering an out-of-bounds read access on the byte array containing the TPM's state. This issue can crash swtpm or prevent it from starting.

*Credits: N/A
CVSS Scores
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Attack Vector
Local
Attack Complexity
Low
Authentication
None
Confidentiality
None
Integrity
None
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-01-19 CVE Reserved
  • 2022-02-18 CVE Published
  • 2023-05-26 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-125: Out-of-bounds Read
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Swtpm Project
Search vendor "Swtpm Project"
Swtpm
Search vendor "Swtpm Project" for product "Swtpm"
< 0.5.3
Search vendor "Swtpm Project" for product "Swtpm" and version " < 0.5.3"
-
Affected
Swtpm Project
Search vendor "Swtpm Project"
Swtpm
Search vendor "Swtpm Project" for product "Swtpm"
>= 0.6.0 < 0.6.2
Search vendor "Swtpm Project" for product "Swtpm" and version " >= 0.6.0 < 0.6.2"
-
Affected
Swtpm Project
Search vendor "Swtpm Project"
Swtpm
Search vendor "Swtpm Project" for product "Swtpm"
0.7.0
Search vendor "Swtpm Project" for product "Swtpm" and version "0.7.0"
-
Affected
Swtpm Project
Search vendor "Swtpm Project"
Swtpm
Search vendor "Swtpm Project" for product "Swtpm"
0.7.0
Search vendor "Swtpm Project" for product "Swtpm" and version "0.7.0"
rc1
Affected
Swtpm Project
Search vendor "Swtpm Project"
Swtpm
Search vendor "Swtpm Project" for product "Swtpm"
0.7.0
Search vendor "Swtpm Project" for product "Swtpm" and version "0.7.0"
rc2
Affected
Redhat
Search vendor "Redhat"
Enterprise Linux
Search vendor "Redhat" for product "Enterprise Linux"
8.0
Search vendor "Redhat" for product "Enterprise Linux" and version "8.0"
-
Affected
Fedoraproject
Search vendor "Fedoraproject"
Fedora
Search vendor "Fedoraproject" for product "Fedora"
35
Search vendor "Fedoraproject" for product "Fedora" and version "35"
-
Affected