7.8high
tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer The TPM SPI transfer mechanism uses MAX_SPI_FRAMESIZE for computing the maximum transfer length and the size of the transfer buffer. As such, it does not account for the 4 bytes of header that prepends the SPI data frame. This can result in out-of-bounds accesses and was confirmed with KASAN. Introduce SPI_HDRSIZE to account for the header and use to allocate the transfer buffer.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a86a42ac2bd652fdc7836a9d880c306a2485c142 before 1547183852dcdfcc25878db7dd3620509217b0cd, from a86a42ac2bd652fdc7836a9d880c306a2485c142 before de13c56f99477b56980c7e00b09c776d16b7563d, from a86a42ac2bd652fdc7836a9d880c306a2485c142 before 195aba96b854dd664768f382cd1db375d8181f88, 6.6 Not affected: before 6.6, from 6.6.33 up to 6.6.*, from 6.9.4 up to 6.9.*, from 6.10 up to * | CVE List |
| linux linux_kernel | from >6.6 before 6.6.33, from >6.7 before 6.9.4, 6.10 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer The TPM SPI transfer mechanism uses MAX_SPI_FRAMESIZE for computing the maximum transfer length and the size of the transfer buffer. As such, it does not account for the 4 bytes of header that prepends the SPI data frame. This can result in out-of-bounds accesses and was confirmed with KASAN. Introduce SPI_HDRSIZE to account for the header and use to allocate the transfer buffer.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tpm_tis_spi: Cuenta para el encabezado SPI al asignar el búfer de transferencia TPM SPI El mecanismo de transferencia TPM SPI utiliza MAX_SPI_FRAMESIZE para calcular la longitud máxima de transferencia y el tamaño del búfer de transferencia. Como tal, no tiene en cuenta los 4 bytes del encabezado que antepone el marco de datos SPI. Esto puede resultar en accesos fuera de los límites y fue confirmado con KASAN. Introduzca SPI_HDRSIZE para tener en cuenta el encabezado y utilícelo para asignar el búfer de transferencia.
References
| https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd | mailing-list, patch | |
| https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d | mailing-list, patch | |
| https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88 | mailing-list, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-36477 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-36477 changed 2026-08-04 | Public domain |