p PatchFirst

CVE-2022-23645

CVE-2022-23645 · Out-of-bounds read in swtpm

CVSS 6.2 · Medium · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • swtpmNo fix published
  • swtpm Debian 12Update to 0.7.1-1
  • swtpm Debian 13Update to 0.7.1-1
  • swtpm Debian 14Update to 0.7.1-1

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="swtpm"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • RHSA-2022:8100 · Red Hat Enterprise Linux 9 appstream ·
  • RHSA-2022:7472 · Red Hat Enterprise Linux 8 appstream, Red Hat Enterprise Linux 8 crb ·
  • openSUSE-SU-2024:11870-1 · openSUSE Tumbleweed ·
  • ALSA-2022:8100 · AlmaLinux 9 ·
  • RLSA-2022:7472 · Rocky Linux 8 ·
  • SUSE-SU-2022:1297-1 · openSUSE Leap 15.3, SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Module for Server Applications 15 SP3 ·

Stack: system

Affected products and versions

  • swtpm

    Versions
    • < 0.5.3: Affected
    • >= 0.6.0, < 0.6.2: Affected
    • = 0.7.0: Affected

    No fix published

  • swtpm Debian 12

    Affected ranges
    • ECOSYSTEM: < 0.7.1-1

    Update to 0.7.1-1

  • swtpm Debian 13

    Affected ranges
    • ECOSYSTEM: < 0.7.1-1

    Update to 0.7.1-1

  • swtpm Debian 14

    Affected ranges
    • ECOSYSTEM: < 0.7.1-1

    Update to 0.7.1-1

Original sources

Check your server →