cve.bz

CVE-2022-23645 Out-of-bounds Read

5.5 mediumEPSS 0.4%Fix available

Medium (5.5). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23645 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23645?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23645?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23645 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
swtpm_project:swtpmbefore 0.5.3
swtpm_project:swtpmfrom 0.6.0 before 0.6.2
swtpm_project:swtpm0.7.0
swtpm_project:swtpm0.7.0:rc1
swtpm_project:swtpm0.7.0:rc2
redhat:enterprise_linux8.0
fedoraproject:fedora35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14swtpm0.7.1-1DEBIAN-CVE-2022-23645
Red Hatenterprise_linux:8::appstreamhivex, perl-hivex, ruby-hivex and 7 more0:1.3.18-23.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibnbd, nbdfuse, libnbd-devel and 6 more0:1.6.0-5.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibvirt, libvirt-nss, libvirt-docs and 48 more0:8.0.0-10.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:8.0.0-2.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamnbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.24.0-4.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamqemu-img, qemu-kvm, qemu-kvm-core and 25 more15:6.2.0-20.module+el8.7.0+16689+53d59bc2.1RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamseabios, seabios-bin, seavgabios-bin0:1.16.0-3.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamsgabios, sgabios-bin1:0.20170427git-3.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamsupermin, supermin-devel, supermin-debuginfo and 1 more0:5.2.1-2.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamswtpm, swtpm-libs, swtpm-devel and 6 more0:0.7.0-4.20211109gitb79fd91.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamvirt-dib, libguestfs, lua-guestfs and 30 more1:1.44.0-9.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
17 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Server Applications 15 SP3swtpm0.5.3-150300.3.3.1SUSE-SU-2022:1297-1
openSUSELeap 15.3swtpm0.5.3-150300.3.3.1SUSE-SU-2022:1297-1
openSUSETumbleweedswtpm0.7.1-1.1openSUSE-SU-2024:11870-1
AlmaLinux9swtpm, swtpm-libs, swtpm-tools0.7.0-3.20211109gitb79fd91.el9ALSA-2022:8100
Rocky Linux8hivex0:1.3.18-23.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8hivex0:1.3.18-23.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libguestfs1:1.44.0-9.module+el8.7.0+1084+97b81f61.rockyRLSA-2022:7472
Rocky Linux8libguestfs-winsupport0:8.6-1.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8libguestfs-winsupport0:8.6-1.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2022:7472
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libnbd0:1.6.0-5.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8libnbd0:1.6.0-5.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libtpms0:0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libvirt0:8.0.0-10.module+el8.7.0+1084+97b81f61RLSA-2022:7472
18 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

No possible workarounds. Users should upgrade to swtpm v0.5.3, v0.6.2 or v0.7.1.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8virt-devel:rhel-8070020220921004438.3b9f49c4Fixed 2022-11-08RHSA-2022:7472
Red Hat Enterprise Linux 8virt:rhel-8070020220921004438.3b9f49c4Fixed 2022-11-08RHSA-2022:7472
Red Hat Enterprise Linux 9swtpm-0:0.7.0-3.20211109gitb79fd91.el9Fixed 2022-11-15RHSA-2022:8100
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/swtpmNot affected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/swtpmFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-23645.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON