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… (CVE-2026-98728)
Description
A bounds check off-by-four vulnerability in the Linux kernel's tpm2_get_random() function was fixed. The flaw allowed memcpy() to read up to 4 bytes beyond the end of a truncated TPM response, potentially leaking stale buffer contents as random data. The issue was addressed by correcting the length check to account for the skipped parameter size field in the response.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's tpm2_get_random() function improperly performed a bounds check when handling TPM2_ST_SESSIONS-tagged responses. It skipped a 4-byte parameter size field before accessing random data but validated the response length only against TPM_HEADER_SIZE. This mismatch allowed a truncated response to pass the check, causing memcpy() to read up to 4 bytes beyond the response buffer. The fix involved adjusting the bounds check to compare the response length against an offset that includes the skipped parameter size field, preventing out-of-bounds reads.
Potential Impact
An attacker could cause the function to return up to 4 bytes of stale buffer data as part of the random output. This could lead to unintended information disclosure of residual memory contents. There is no indication of code execution or system compromise. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to correct the bounds check in tpm2_get_random(). Users should apply the official kernel update containing this patch when it becomes available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-m4p2-cqr5-x7cx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98728"]
Threat ID: 6ad520ab2cdf04f6569939dc
Added to database: 10/18/2026, 19:40:27 UTC
Last enriched: 10/18/2026, 22:24:37 UTC
Last updated: 10/18/2026, 22:24:37 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.