CVE-2026-98728
tpm: fix off-by-four bounds check in tpm2_get_random()
Check your servers for CVE-2026-98728
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98728 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.24% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, before be54101992c2c5218be0e0a87827ccc96e3089af affected from 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, before e30a2406408d2df6d9cd48c2e59e913cf266a05a affected from 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, before 42bb6216b861e892512128219ff23010d656ba14 affected from 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, before 9b522400bf5c082feb9a0037a053ea822a2c7e4d
Other versions: unaffected
|
| Linux |
affected 6.10 unaffected before 6.10 unaffected from 6.12.113 up to and including 6.12.* unaffected from 6.18.56 up to and including 6.18.* unaffected from 7.2.10 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98728 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98728
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98728
trivy image --scanners vuln IMAGE | grep CVE-2026-98728
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/be54101992c2c5218be0e0a87827ccc96e3089af git.kernel.org
- https://git.kernel.org/stable/c/e30a2406408d2df6d9cd48c2e59e913cf266a05a git.kernel.org
- https://git.kernel.org/stable/c/42bb6216b861e892512128219ff23010d656ba14 git.kernel.org
- https://git.kernel.org/stable/c/9b522400bf5c082feb9a0037a053ea822a2c7e4d git.kernel.org
Source: the record CVE-2026-98728 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse