CVE-2026-98728

Source
https://cve.org/CVERecord?id=CVE-2026-98728
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98728.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98728
Downstream
Published
2026-10-18T15:47:05Z
Modified
2026-10-19T02:47:14Z
Summary
tpm: fix off-by-four bounds check in tpm2_get_random()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98728.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Fixed
be54101992c2c5218be0e0a87827ccc96e3089af
Fixed
e30a2406408d2df6d9cd48c2e59e913cf266a05a
Fixed
42bb6216b861e892512128219ff23010d656ba14
Fixed
9b522400bf5c082feb9a0037a053ea822a2c7e4d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98728.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.12.113
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.56
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98728.json"