CVE-2026-75900
JSON

6.1medium

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

Severity
6.1medium CVSS:3.1 by redhat
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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.

Affected

Product or packageVersionsReported by
swtpmNot specifiedCVE List
virt:rhel/swtpmNot specifiedCVE List

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de lectura fuera de límites se encontró en la función SWTPM_NVRAM_CheckHeader() de swtpm. El guardia de entrada comprueba la longitud del búfer contra sizeof(bh), donde bh es un puntero, en lugar de sizeof(bh), el tamaño real de la estructura. Esto permite que un búfer de tamaño insuficiente pase la validación, causando una sobrelectura de heap de 2 bytes en sistemas de 64 bits (6 bytes en 32 bits) al acceder al campo totlen. Esto puede causar la terminación del demonio en algunas plataformas y filtra datos del heap al registro.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-75900 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-75900 changed 2026-11-25Public domain