{"id":"CVE-2026-98728","aliases":["CVE-2026-98728"],"related":[],"kind":"vulnerability","state":"published","title":"tpm: fix off-by-four bounds check in tpm2_get_random()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: fix off-by-four bounds check in tpm2_get_random()\n\nWhen the response carries the TPM2_ST_SESSIONS tag, tpm2_get_random()\nskips the 4-byte parameter size field before locating the random data,\nbut the bounds check still validates the response length against\nTPM_HEADER_SIZE.  A truncated response can pass the check and make\nmemcpy() read up to 4 bytes past the response end, so stale buffer\ncontents end up in the caller's random bytes.\n\nFix this by checking the response length against 'offset', which\nalready includes the skipped parameter size field.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: fix off-by-four bounds check in tpm2_get_random()\n\nWhen the response carries the TPM2_ST_SESSIONS tag, tpm2_get_random()\nskips the 4-byte parameter size field before locating the random data,\nbut the bounds check still validates the response length against\nTPM_HEADER_SIZE.  A truncated response can pass the check and make\nmemcpy() read up to 4 bytes past the response end, so stale buffer\ncontents end up in the caller's random bytes.\n\nFix this by checking the response length against 'offset', which\nalready includes the skipped parameter size field.","source":"cvelist"}],"published":"2026-10-18T15:47:05.722Z","modified":"2026-10-19T10:19:36.963Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497","fixed":"be54101992c2c5218be0e0a87827ccc96e3089af","status":"affected"},{"type":"git","introduced":"1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497","fixed":"e30a2406408d2df6d9cd48c2e59e913cf266a05a","status":"affected"},{"type":"git","introduced":"1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497","fixed":"42bb6216b861e892512128219ff23010d656ba14","status":"affected"},{"type":"git","introduced":"1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497","fixed":"9b522400bf5c082feb9a0037a053ea822a2c7e4d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/be54101992c2c5218be0e0a87827ccc96e3089af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e30a2406408d2df6d9cd48c2e59e913cf266a05a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/42bb6216b861e892512128219ff23010d656ba14","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b522400bf5c082feb9a0037a053ea822a2c7e4d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98728","url":"https://www.cve.org/CVERecord?id=CVE-2026-98728","licence":"CVE Terms of Use","modified":"2026-10-19T09:24:38.853Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98728","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98728","licence":"Public domain","modified":"2026-10-19T10:19:36.963Z"}],"updatedAt":"2026-11-25T22:59:45.282Z","epss":{"score":0.00168,"percentile":0.06354,"date":"2026-12-01T12:00:22.000Z"}}