CVE-2024-36477

Severity CVSS v4.0:
Pending analysis
Type:
CWE-125 Out-of-bounds Read
Publication date:
21/06/2024
Last modified:
23/05/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer<br /> <br /> The TPM SPI transfer mechanism uses MAX_SPI_FRAMESIZE for computing the<br /> maximum transfer length and the size of the transfer buffer. As such, it<br /> does not account for the 4 bytes of header that prepends the SPI data<br /> frame. This can result in out-of-bounds accesses and was confirmed with<br /> KASAN.<br /> <br /> Introduce SPI_HDRSIZE to account for the header and use to allocate the<br /> transfer buffer.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.6 (excluding) 6.6.33 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (excluding) 6.9.4 (excluding)
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*