CVE-2022-23645
Out-of-bounds read in swtpm
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.40% · top 65% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.2.
Weakness
Affected products
- affected < 0.5.3
- affected >= 0.6.0, < 0.6.2
- affected = 0.7.0
References (6)
- https://github.com/stefanberger/swtpm/security/advisories/GHSA-2qgm-8xf4-3hqw (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/stefanberger/swtpm/commit/9f740868fc36761de27df3935513bdebf8852d19 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/stefanberger/swtpm/releases/tag/v0.5.3 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/stefanberger/swtpm/releases/tag/v0.6.2 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/stefanberger/swtpm/releases/tag/v0.7.1 (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2022-12443a525c (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-23645)Record last updated .