{"id":"CVE-2024-36477","summary":"tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer\n\nThe TPM SPI transfer mechanism uses MAX_SPI_FRAMESIZE for computing the\nmaximum transfer length and the size of the transfer buffer. As such, it\ndoes not account for the 4 bytes of header that prepends the SPI data\nframe. This can result in out-of-bounds accesses and was confirmed with\nKASAN.\n\nIntroduce SPI_HDRSIZE to account for the header and use to allocate the\ntransfer buffer.","modified":"2026-04-02T12:10:22.812185Z","published":"2024-06-21T11:18:46.822Z","related":["MGASA-2024-0263","MGASA-2024-0266","SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36477.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36477.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36477"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a86a42ac2bd652fdc7836a9d880c306a2485c142"},{"fixed":"1547183852dcdfcc25878db7dd3620509217b0cd"},{"fixed":"de13c56f99477b56980c7e00b09c776d16b7563d"},{"fixed":"195aba96b854dd664768f382cd1db375d8181f88"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36477.json"}}],"schema_version":"1.7.5"}