VDB

CVE-2022-23645

CVE-2022-23645 PUBLISHED CVSS 6.2 MEDIUM

Out-of-bounds read in swtpm

Reported by github_m · Published February 18, 2022

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.

Risk scores

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

Affected products

VendorProductVersions
stefanbergerswtpm< 0.5.3, >= 0.6.0, < 0.6.2, = 0.7.0
stefanbergerswtpm0, 0.6.0, 0.7.0

Timeline

  • Feb 18, 2022 CVE Published
  • Feb 19, 2022 EPSS Score (30 in total, the first dated here)
  • Apr 23, 2025 CVE Updated
  • Jul 4, 2026 Coalition ESS Score
  • Oct 13, 2026 Distribution Patch (9 in total, the first dated here)
  • Oct 13, 2026 Security Advisory (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-23645
vulnetix vdb fixes CVE-2022-23645

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-23645/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_CONFIRM
  • x_refsource_MISC
  • x_refsource_MISC
  • x_refsource_MISC
  • x_refsource_MISC
  • FEDORA-2022-12443a525c vendor-advisoryx_refsource_FEDORA
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›