{"id":"CVE-2024-36477","published":"2024-06-21T11:18:46Z","modified":"2026-08-05T11:31:46Z","title":"tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00329,"percentile":0.18407,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd","tags":[]},{"url":"https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d","tags":[]},{"url":"https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":3.68},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a86a42ac2bd652fdc7836a9d880c306a2485c142, < 1547183852dcdfcc25878db7dd3620509217b0cd",">= a86a42ac2bd652fdc7836a9d880c306a2485c142, < de13c56f99477b56980c7e00b09c776d16b7563d",">= a86a42ac2bd652fdc7836a9d880c306a2485c142, < 195aba96b854dd664768f382cd1db375d8181f88"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-21T13:25:38.377073Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-36113","exploited":false,"provenance":"source"}}