# CVE-2024-36477: tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-06-21T11:18:46.822Z
- Modified: 2026-08-05T11:31:46.847Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from >6.6 before 6.6.33; from >6.7 before 6.9.4; 6.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2024-36477](https://www.cve.org/CVERecord?id=CVE-2024-36477), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-36477](https://nvd.nist.gov/vuln/detail/CVE-2024-36477), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-36477 · Whole record: https://cve.day/CVE-2024-36477.json · Rebuilt by cve.day 2026-11-25T22:58:42.124Z
