CVE-2026-98728
Received Received - Intake

TPM2 Get Random Buffer Overflow in Linux Kernel

Vulnerability report for CVE-2026-98728, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-18

Last updated on: 2026-10-18

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: tpm: fix off-by-four bounds check in tpm2_get_random() When the response carries the TPM2_ST_SESSIONS tag, tpm2_get_random() skips the 4-byte parameter size field before locating the random data, but the bounds check still validates the response length against TPM_HEADER_SIZE. A truncated response can pass the check and make memcpy() read up to 4 bytes past the response end, so stale buffer contents end up in the caller's random bytes. Fix this by checking the response length against 'offset', which already includes the skipped parameter size field.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-18
Last Modified
2026-10-18
Generated
2026-10-18
AI Q&A
2026-10-18
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
Linux Linux 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Linux Linux 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Linux Linux 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Linux Linux 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Linux Linux 6.10

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is in the Linux kernel's TPM (Trusted Platform Module) driver. It involves an off-by-four error in the tpm2_get_random() function where a bounds check incorrectly validates response length. When the response has a TPM2_ST_SESSIONS tag, the function skips a 4-byte parameter size field but still checks against TPM_HEADER_SIZE. This allows a truncated response to pass validation, causing memcpy() to read up to 4 bytes past the response end, potentially exposing stale buffer contents in random data.

Detection Guidance

This vulnerability is specific to the Linux kernel's TPM (Trusted Platform Module) implementation. Detection requires checking the kernel version and TPM driver code. Use commands like 'uname -a' to check kernel version and 'dmesg | grep tpm' to inspect TPM-related logs for errors.

Impact Analysis

This vulnerability could lead to random data generated by the system containing stale memory contents instead of properly generated random bytes. This might weaken cryptographic operations that rely on randomness, such as encryption keys or secure tokens, potentially enabling security bypasses or information disclosure if exploited.

Mitigation Strategies

Update your Linux kernel to the latest patched version. Monitor vendor advisories for kernel updates. If using a custom kernel, apply the patch for tpm2_get_random() bounds check. Disable TPM if not required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-98728. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart