Skip to content

CVE-2026-75900 Swtpm: swtpm: out-of-bounds read in swtpm_nvram_checkheader due to sizeof(pointer) vs sizeof(struct) mismatch

MediumCVSS 6.1 EPSS 0.11%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

An out-of-bounds read vulnerability was found in swtpm's SWTPM_NVRAM_CheckHeader() function. The entry guard checks the buffer length against sizeof(bh), where bh is a pointer, instead of sizeof(*bh), the actual struct size. This allows an undersized buffer to pass validation, causing a 2-byte heap overread on 64-bit systems (6 bytes on 32-bit) when accessing the totlen field. This may cause daemon termination on some platforms and leaks heap data to the log.

Upgrade path

16 packages: 5 fixed, 1 partially fixed, 10 with no fix yet.

PackageAffectedFixed inStatus
debian/swtpm(Debian 12) = 0.7.1-1.3; = 0.7.1-1.4; = 0.7.1-1.5; = 0.10.1+ds-1 +3 more No fix listed No fix yet
debian/swtpm(Debian 13) = 0.7.1-1.5; = 0.10.1+ds-1; = 0.10.2-1; = 0.10.2-2 +1 more No fix listed No fix yet
redhat enterprise linux All versions No fix listed No fix yet
redhat/swtpm(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
redhat/swtpm(Red Hat enterprise_linux 9) All versions No fix listed No fix yet
redhat/virt:rhel/swtpm(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
ubuntu/swtpm(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/swtpm(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/swtpm(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/swtpm(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux swtpm(Azure Linux 3.0) < 0.8.1-6; All versions 0.8.1-6 Partially fixed
alpine/swtpm(Alpine v3.21) < 0.10.2 0.10.2 Fixed
alpine/swtpm(Alpine v3.22) < 0.10.2 0.10.2 Fixed
alpine/swtpm(Alpine v3.23) < 0.10.2 0.10.2 Fixed
alpine/swtpm(Alpine v3.24) < 0.10.2 0.10.2 Fixed
debian/swtpm(Debian 14) < 0.10.2-1; = 0.7.1-1.5; = 0.10.1+ds-1 0.10.2-1 Fixed

Affected products

ProductAffected versionsFixed in
redhat enterprise linux All versions No fix listed
redhat/swtpm(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/virt:rhel/swtpm(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/swtpm(Red Hat:enterprise_linux:9) All versions No fix listed
debian/swtpm(Debian:12) All versions No fix listed
debian/swtpm(Debian:12) = 0.10.1+ds-1 No fix listed
debian/swtpm(Debian:12) = 0.10.2-1 No fix listed
debian/swtpm(Debian:12) = 0.10.2-2 No fix listed
debian/swtpm(Debian:12) = 0.7.1-1.3 No fix listed
debian/swtpm(Debian:12) = 0.7.1-1.4 No fix listed
debian/swtpm(Debian:12) = 0.7.1-1.5 No fix listed
debian/swtpm(Debian:13) All versions No fix listed
debian/swtpm(Debian:13) = 0.10.1+ds-1 No fix listed
debian/swtpm(Debian:13) = 0.10.2-1 No fix listed
debian/swtpm(Debian:13) = 0.10.2-2 No fix listed
debian/swtpm(Debian:13) = 0.7.1-1.5 No fix listed
debian/swtpm(Debian:14) < 0.10.2-1 0.10.2-1
debian/swtpm(Debian:14) = 0.10.1+ds-1 No fix listed
debian/swtpm(Debian:14) = 0.7.1-1.5 No fix listed
ubuntu/swtpm(Ubuntu:22.04) All versions No fix listed
alpine/swtpm(Alpine:v3.21) < 0.10.2 0.10.2
alpine/swtpm(Alpine:v3.22) < 0.10.2 0.10.2
alpine/swtpm(Alpine:v3.23) < 0.10.2 0.10.2
alpine/swtpm(Alpine:v3.24) < 0.10.2 0.10.2
ubuntu/swtpm(Ubuntu:24.04) All versions No fix listed
Show 4 more
ProductAffected versionsFixed in
ubuntu/swtpm(Ubuntu:26.04) All versions No fix listed
ubuntu/swtpm(Ubuntu:26.10) All versions No fix listed
azure linux swtpm(Azure Linux:3.0) All versions No fix listed
azure linux swtpm(Azure Linux:3.0) < 0.8.1-6 0.8.1-6

References