CVE-2022-23645
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-23645 is a vulnerability discovered in swtpm (TPM Emulator) that was disclosed on February 18, 2022. The vulnerability affects the TPM emulator built on libtpms that provides TPM functionality for QEMU VMs. The issue exists in versions 0.7.0, 0.6.1, 0.5.2, and 0.4.2 (GHSA Advisory).

Technical details

The vulnerability occurs when a specially crafted header of swtpm's state contains an invalid value in the blobheader's hdrsize indicator. This can lead to an out-of-bounds read when accessing the byte array representing the state of the TPM. The issue stems from insufficient validation of the header size indicator against the expected size (NVD, GHSA Advisory).

Impact

When exploited, this vulnerability can cause an out-of-bounds access when the byte array representing the state of the TPM is accessed. This will likely result in either a crash of swtpm or prevent it from starting since the state cannot be properly understood (GHSA Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 0.7.1, 0.6.2, and 0.5.3. Users are advised to upgrade to these patched versions. There are no known workarounds for this vulnerability (GHSA Advisory, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management