CVE-2022-23645

Out-of-bounds read in swtpm

MEDIUM
5.5
CVSS Score
Published: February 18, 2022 at 08:50 PM UTC
Updated: June 17, 2026 at 04:30 AM UTC
4 products affected across 4 vendorsFedoraEnterprise LinuxSwtpm

Using swtpm by stefanberger?

Get instant alerts when new vulnerabilities affect swtpm - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.5.30.6.0 ≤ v < 0.6.20.7.00.7.0 rc10.7.0 rc2
Affected range stops below 0.5.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.6.2, so it looks safe — our inference, not a vendor statement
v < 0.5.3v < 0.6.2= 0.7.0
Affected range stops below 0.5.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.6.2, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card