CVE-2024-36477
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelfrom >6.6 before 6.6.33, from >6.7 before 6.9.4, 6.10NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-125

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

Sources

SourceRecordLicence
CVE ListCVE-2024-36477 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-36477 changed 2026-08-04Public domain