Out-of-bounds read in swtpm
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-125 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| stefanberger | swtpm | before 0.5.3; 0.6.0 to before 0.6.2; = 0.7.0 | 0.5.3, 0.6.2 | Patch available | CNA |
- swtpm Vendorstefanberger Affected before 0.5.3; 0.6.0 to before 0.6.2; = 0.7.0 Fixed in 0.5.3, 0.6.2 Patch available CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:swtpm_project:swtpm:*:*:*:*:*:*:*:* | before 0.5.3; 0.6.0 to before 0.6.2 | Vulnerable | Swtpm Project |
| cpe:2.3:a:swtpm_project:swtpm:0.7.0:-:*:*:*:*:*:* | 0.7.0 | Vulnerable | Swtpm Project |
| cpe:2.3:a:swtpm_project:swtpm:0.7.0:rc1:*:*:*:*:*:* | 0.7.0 rc1 | Vulnerable | Swtpm Project |
| cpe:2.3:a:swtpm_project:swtpm:0.7.0:rc2:*:*:*:*:*:* | 0.7.0 rc2 | Vulnerable | Swtpm Project |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
- cpe:2.3:a:swtpm_project:swtpm:*:*:*:*:*:*:*:* Versions before 0.5.3; 0.6.0 to before 0.6.2 Vulnerable ·Swtpm Project
- cpe:2.3:a:swtpm_project:swtpm:0.7.0:-:*:*:*:*:*:* Versions 0.7.0 Vulnerable ·Swtpm Project
- cpe:2.3:a:swtpm_project:swtpm:0.7.0:rc1:*:*:*:*:*:* Versions 0.7.0 rc1 Vulnerable ·Swtpm Project
- cpe:2.3:a:swtpm_project:swtpm:0.7.0:rc2:*:*:*:*:*:* Versions 0.7.0 rc2 Vulnerable ·Swtpm Project
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA swtpm (stefanberger) Fixed in 0.5.3, 0.6.2
Red Hat 2 advisories
- RHSA-2022:8100 Released 2022-11-15 · Red Hat rating Lowswtpm security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 9) swtpm-0.7.0-3.20211109gitb79fd91.el9, swtpm-libs-0.7.0-3.20211109gitb79fd91.el9, swtpm-tools-0.7.0-3.20211109gitb79fd91.el9
- RHSA-2022:7472 Released 2022-11-08 · Red Hat rating Lowvirt:rhel and virt-devel:rhel security, bug fix, and enhancement update
- Red Hat CodeReady Linux Builder (v. 8) SLOF-20210217-1.module+el8.7.0+16689+53d59bc2.src::virt-devel:rhel, hivex-1.3.18-23.module+el8.7.0+16689+53d59bc2.i686::virt-devel:rhel, hivex-devel-1.3.18-23.module+el8.7.0+16689+53d59bc2.i686::virt-devel:rhel +47
- Red Hat Enterprise Linux AppStream (v. 8) SLOF-20210217-1.module+el8.7.0+16689+53d59bc2.noarch::virt:rhel, SLOF-20210217-1.module+el8.7.0+16689+53d59bc2.src::virt:rhel, hivex-1.3.18-23.module+el8.7.0+16689+53d59bc2.aarch64::virt:rhel +47
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 8 Advanced Virtualization | Affected | No fix yet: Fix deferred |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2022:7472 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:7472 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2022:8100 |
Not affected: 1 product
- Red Hat Enterprise Linux 8 Advanced Virtualization
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23645
References
Patch 2
Sources
- CVE-2022-23645 · CVE Program
- CVE-2022-23645 · NVD
- FIRST EPSS
- CVE-2022-23645 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences