CVE-2025-49133: Libtpms contains a possible out-of-bound access and abort due to HMAC signing issue
Vulnerability summary
CVE-2025-49133 is a medium (CVSS 5.9) Out-of-bounds Read vulnerability in libtpms_project libtpms. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 10-06-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
Libtpms is a library that targets the integration of TPM functionality into hypervisors, primarily into Qemu. Libtpms, which is derived from the TPM 2.0 reference implementation code published by the Trusted Computing Group, is prone to a potential out of bounds (OOB) read vulnerability. The vulnerability occurs in the ‘CryptHmacSign’ function with an inconsistent pairing of the signKey and signScheme parameters, where the signKey is ALG_KEYEDHASH key and inScheme is an ECC or RSA scheme. The reported vulnerability is in the ‘CryptHmacSign’ function, which is defined in the "Part 4: Supporting Routines – Code" document, section "7.151 - /tpm/src/crypt/CryptUtil.c ". This vulnerability can be triggered from user-mode applications by sending malicious commands to a TPM 2.0/vTPM (swtpm) whose firmware is based on an affected TCG reference implementation. The effect on libtpms is that it will cause an abort due to the detection of the out-of-bounds access, thus for example making a vTPM (swtpm) unavailable to a VM. This vulnerability is fixed in 0.7.12, 0.8.10, 0.9.7, and 0.10.1.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.17%
Chance of exploitation in the next 30 days
Percentile
6%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.16% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat194 products
- hivex< 0:1.3.18-23.module+el8.6.0+14480+c0a3aa0f | < 0:1.3.18-23.module+el8.8.0+16781+9f4724c2 | < 0:1.3.18-23.module+el8.9.0+18724+20190c23
- hivex-debuginfo< 0:1.3.18-23.module+el8.6.0+14480+c0a3aa0f | < 0:1.3.18-23.module+el8.8.0+16781+9f4724c2 | < 0:1.3.18-23.module+el8.9.0+18724+20190c23
- hivex-debugsource< 0:1.3.18-23.module+el8.6.0+14480+c0a3aa0f | < 0:1.3.18-23.module+el8.8.0+16781+9f4724c2 | < 0:1.3.18-23.module+el8.9.0+18724+20190c23
- hivex-devel< 0:1.3.18-23.module+el8.6.0+14480+c0a3aa0f | < 0:1.3.18-23.module+el8.8.0+16781+9f4724c2 | < 0:1.3.18-23.module+el8.9.0+18724+20190c23
- libguestfs< 1:1.44.0-5.module+el8.6.0+14480+c0a3aa0f | < 1:1.44.0-9.module+el8.8.0+16781+9f4724c2 | < 1:1.44.0-9.module+el8.9.0+18724+20190c23
Opensuse2 products
- libtpms&distro=openSUSE Leap 15.6< 0.9.6-150600.3.3.1
- libtpms&distro=openSUSE Tumbleweed< 0.10.1-1.1
Debian1 product
- libtpms< 0.9.2-3.1+deb12u1 | < 0.9.2-3.2
Libtpms_project1 product
- libtpms0.7.11 | 0.8.9 | 0.9.6 | 0.10.0
Mageia1 product
- libtpms< 0.9.6-1.1.mga9
Ubuntu1 product
- libtpms< 0.9.3-0ubuntu1.22.04.2 | < 0.9.3-0ubuntu4.24.04.1
6 vendors · 200 products · Showing 200 of 240
References
35 links- github.com/stefanberger/libtpms/security/advisories/GHSA-25w5-6fjj-hf8gX Refsource CONFIRMARTICLEREPORTThird Party Advisory
- github.com/stefanberger/libtpms/commit/04b2d8e9afc0a9b6bffe562a23e58c0de11532d1X Refsource MISCARTICLEPatch
- trustedcomputinggroup.org/wp-content/uploads/TPM-2.0-1.83-Part-4-Supporting-Routines-Code.pdfX Refsource MISCARTICLEREPORTProduct