CVE-2024-36477

tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer

HIGH
7.8
CVSS Score
Published: June 21, 2024 at 11:18 AM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.6 ≤ v < 6.106.6 ≤ v < 6.6.336.6 ≤ v < 6.9.46.6 < v < 6.6.336.7 < v < 6.9.46.10 rc1a86a42ac2bd652fdc7836a9d880c306a2485c142
Vendor states this is fixed in 1547183852dcdfcc25878db7dd3620509217b0cd (fixed)
Vendor states this is fixed in 195aba96b854dd664768f382cd1db375d8181f88 (fixed)
Vendor states this is fixed in de13c56f99477b56980c7e00b09c776d16b7563d (fixed)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.9.4 (unaffected)

References (3)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card