Skip to content
Memory corruption Advisory Advanced CVE-2025-2884

Cert CC: CVE-2025-2884 Out-of-Bounds read vulnerability in TCG TPM2.0 reference implementation

The CryptHmacSign helper function in the TCG TPM2.0 reference implementation did not validate that the signature scheme matched the signature key's algorithm, leading to an out-of-bounds read. An attacker could potentially exploit this to read memory beyond the intended buffer, though the text does not specify the exact consequences.

TCG [[email protected]] TCG Follow

Originally disclosed on Microsoft

High 5.3 View original

Description

CVE-2025-2884 is regarding a vulnerability in TCG TPM2.0 Reference implementation's CryptHmacSign helper function that is vulnerable to Out-of-Bounds read due to the lack of validation the signature scheme with the signature key's algorithm. CERT/CC created this CVE on their behalf. The documented Windows updates incorporate updates in TCG TPM2.0 Reference implementation which address this vulnerability. Please see CVE-2025-2884 for more information.

TCG TPM2.0

TCG TPM2.0

CERT/CC

CERT/CC

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by TCG [[email protected]] TCG. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the CryptHmacSign function failed to verify that the signature scheme parameter was compatible with the algorithm of the supplied signing key before using it.

Impact

The out-of-bounds read could potentially allow an attacker to cause a crash or disclose memory contents, but the text does not describe a specific exploit scenario or confirm that either is possible.

What the attacker needed

None stated

The fix

The vulnerability was addressed by updates to the TCG TPM2.0 Reference implementation, which are included in documented Windows updates.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is about a security flaw in a reference implementation of the Trusted Platform Module (TPM), a chip that stores cryptographic keys. A function that creates digital signatures did not check that the chosen signing method matched the type of key being used, so it could read past the end of a memory buffer. That kind of out-of-bounds read can crash software or leak data, but the text does not say what an attacker could actually achieve.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.