-

CVE-2026-98728

tpm: fix off-by-four bounds check in tpm2_get_random()

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.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Version < be54101992c2c5218be0e0a87827ccc96e3089af
Status affected
Version 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Version < e30a2406408d2df6d9cd48c2e59e913cf266a05a
Status affected
Version 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Version < 42bb6216b861e892512128219ff23010d656ba14
Status affected
Version 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497
Version < 9b522400bf5c082feb9a0037a053ea822a2c7e4d
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 6.10
Status affected
Version 0
Version < 6.10
Status unaffected
Version <= 6.12.*
Version 6.12.113
Status unaffected
Version <= 6.18.*
Version 6.18.56
Status unaffected
Version <= 7.2.*
Version 7.2.10
Status unaffected
Version <= *
Version 7.3
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.17% 0.057
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/be54101992c2c5218be0e0a87827ccc96e3089af
https://git.kernel.org/stable/c/e30a2406408d2df6d9cd48c2e59e913cf266a05a
https://git.kernel.org/stable/c/42bb6216b861e892512128219ff23010d656ba14
https://git.kernel.org/stable/c/9b522400bf5c082feb9a0037a053ea822a2c7e4d