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.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
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:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd
- https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88
- https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d
- https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd
- https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88
- https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d