# CVE-2026-98728: tpm: fix off-by-four bounds check in tpm2\_get\_random()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:47:05.722Z
- **Modified:** 2026-10-19T10:19:36.963Z

## Who should check

- Anyone running Linux \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< be54101992c2c5218be0e0a87827ccc96e3089af; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< e30a2406408d2df6d9cd48c2e59e913cf266a05a; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< 42bb6216b861e892512128219ff23010d656ba14; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< 9b522400bf5c082feb9a0037a053ea822a2c7e4d
- Anyone running Linux 6.10

## 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.

## Affected and fixed versions

- Linux: \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< be54101992c2c5218be0e0a87827ccc96e3089af; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< e30a2406408d2df6d9cd48c2e59e913cf266a05a; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< 42bb6216b861e892512128219ff23010d656ba14; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< 9b522400bf5c082feb9a0037a053ea822a2c7e4d (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 9b522400bf5c082feb9a0037a053ea822a2c7e4d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98728. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98728.md
Affected: Linux >= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, < be54101992c2c5218be0e0a87827ccc96e3089af; >= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, < e30a2406408d2df6d9cd48c2e59e913cf266a05a; >= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, < 42bb6216b861e892512128219ff23010d656ba14; >= 1b6d7f9eb150305dcb0da4f…
Fixed in: Linux 42bb6216b861e892512128219ff23010d656ba14, Linux 9b522400bf5c082feb9a0037a053ea822a2c7e4d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98728 being exploited?

There is no confirmed exploitation: CVE-2026-98728 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98728?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98728?

Linux \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< be54101992c2c5218be0e0a87827ccc96e3089af; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< e30a2406408d2df6d9cd48c2e59e913cf266a05a; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< 42bb6216b861e892512128219ff23010d656ba14; \>= 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497, \< 9b522400bf5c082feb9a0037a053ea822a2c7e4d; Linux 6.10.

### Is there a fix for CVE-2026-98728?

Yes. Fixed in Linux 42bb6216b861e892512128219ff23010d656ba14, Linux 9b522400bf5c082feb9a0037a053ea822a2c7e4d. Upgrade Linux to 9b522400bf5c082feb9a0037a053ea822a2c7e4d or later.

### How do I check if I'm affected by CVE-2026-98728?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/be54101992c2c5218be0e0a87827ccc96e3089af>
- other: <https://git.kernel.org/stable/c/e30a2406408d2df6d9cd48c2e59e913cf266a05a>
- other: <https://git.kernel.org/stable/c/42bb6216b861e892512128219ff23010d656ba14>
- other: <https://git.kernel.org/stable/c/9b522400bf5c082feb9a0037a053ea822a2c7e4d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98728>

HTML: <https://flawdb.com/CVE-2026-98728> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98728>
