Vulnerability CVE-2022-23645: Information

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.

Severity: MEDIUM (5.5) Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Published: Feb. 19, 2022
Modified: Nov. 7, 2023
Error type identifier: CWE-125

Fixed packages

Package name
Branch
Fixed in version
Version from repository
Errata ID
Task #
State
swtpmsisyphus0.7.2-alt10.8.1-alt1ALT-PU-2022-1561-1297113Fixed
swtpmp100.7.2-alt10.8.0-alt1ALT-PU-2022-1561-1297113Fixed

References to Advisories, Solutions, and Tools

    1. Configuration 1

      cpe:2.3:a:swtpm_project:swtpm:0.7.0:rc1:*:*:*:*:*:*

      cpe:2.3:a:swtpm_project:swtpm:0.7.0:rc2:*:*:*:*:*:*

      cpe:2.3:a:swtpm_project:swtpm:0.7.0:-:*:*:*:*:*:*

      cpe:2.3:a:swtpm_project:swtpm:*:*:*:*:*:*:*:*
      Start including
      0.6.0
      End excliding
      0.6.2

      cpe:2.3:a:swtpm_project:swtpm:*:*:*:*:*:*:*:*
      End excliding
      0.5.3

      Configuration 2

      cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*

      Configuration 3

      cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*