{"id":"CVE-2025-68792","aliases":["CVE-2025-68792"],"related":[],"kind":"vulnerability","state":"published","title":"tpm2-sessions: Fix out of range indexing in name_size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm2-sessions: Fix out of range indexing in name_size\n\n'name_size' does not have any range checks, and it just directly indexes\nwith TPM_ALG_ID, which could lead into memory corruption at worst.\n\nAddress the issue by only processing known values and returning -EINVAL for\nunrecognized values.\n\nMake also 'tpm_buf_append_name' and 'tpm_buf_fill_hmac_session' fallible so\nthat errors are detected before causing any spurious TPM traffic.\n\nEnd also the authorization session on failure in both of the functions, as\nthe session state would be then by definition corrupted.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm2-sessions: Fix out of range indexing in name_size\n\n'name_size' does not have any range checks, and it just directly indexes\nwith TPM_ALG_ID, which could lead into memory corruption at worst.\n\nAddress the issue by only processing known values and returning -EINVAL for\nunrecognized values.\n\nMake also 'tpm_buf_append_name' and 'tpm_buf_fill_hmac_session' fallible so\nthat errors are detected before causing any spurious TPM traffic.\n\nEnd also the authorization session on failure in both of the functions, as\nthe session state would be then by definition corrupted.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntpm2-sessions: Corrección de indexación fuera de rango en name_size\n\n'name_size' no tiene ninguna comprobación de rango, y simplemente indexa directamente con TPM_ALG_ID, lo que podría llevar a corrupción de memoria en el peor de los casos.\n\nAbordar el problema procesando solo valores conocidos y devolviendo -EINVAL para valores no reconocidos.\n\nHacer también 'tpm_buf_append_name' y 'tpm_buf_fill_hmac_session' falibles para que los errores sean detectados antes de causar cualquier tráfico TPM espurio.\n\nFinalizar también la sesión de autorización en caso de fallo en ambas funciones, ya que el estado de la sesión estaría entonces por definición corrupto.","source":"nvd"}],"published":"2026-01-13T15:29:04.226Z","modified":"2026-08-05T12:11:28.554Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1085b8276bb4239daa7008f0dcd5c973e4bd690f","fixed":"47e676ce4d68f461dfcab906f6aeb254f7276deb","status":"affected"},{"type":"git","introduced":"1085b8276bb4239daa7008f0dcd5c973e4bd690f","fixed":"04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43","status":"affected"},{"type":"git","introduced":"1085b8276bb4239daa7008f0dcd5c973e4bd690f","fixed":"6e9722e9a7bfe1bbad649937c811076acf86e1fd","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.66","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.3","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","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/47e676ce4d68f461dfcab906f6aeb254f7276deb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6e9722e9a7bfe1bbad649937c811076acf86e1fd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68792","url":"https://www.cve.org/CVERecord?id=CVE-2025-68792","licence":"CVE Terms of Use","modified":"2026-08-05T12:11:28.554Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68792","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68792","licence":"Public domain","modified":"2026-07-30T06:24:44.653Z"}],"updatedAt":"2026-11-25T22:59:10.533Z","epss":{"score":0.00152,"percentile":0.0461,"date":"2026-12-01T12:00:22.000Z"}}