tpm2-sessions: Fix out of range indexing in name_size
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43, Kernel 47e676ce4d68f461dfcab906f6aeb254f7276deb and Kernel 6e9722e9a7bfe1bbad649937c811076acf86e1fd.
In the Linux kernel, the following vulnerability has been resolved: tpm2-sessions: Fix out of range indexing in name_size 'name_size' does not have any range checks, and it just directly indexes with TPM_ALG_ID, which could lead into memory corruption at worst. Address the issue by only processing known values and returning -EINVAL for unrecognized values. Make also 'tpm_buf_append_name' and 'tpm_buf_fill_hmac_session' fallible so that errors are detected before causing any spurious TPM traffic. End also the authorization session on failure in both of the functions, as the session state would be then by definition corrupted.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.10, >=1085b8276bb4239daa7008f0dcd5c973e4bd690f <04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43, >=1085b8276bb4239daa7008f0dcd5c973e4bd690f <47e676ce4d68f461dfcab906f6aeb254f7276deb, >=1085b8276bb4239daa7008f0dcd5c973e4bd690f <6e9722e9a7bfe1bbad649937c811076acf86e1fd | 04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43, 47e676ce4d68f461dfcab906f6aeb254f7276deb, 6e9722e9a7bfe1bbad649937c811076acf86e1fd |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket