CVE-2024-36477 tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer
HighCVSS 7.8
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
7 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 13) | < 6.9.7-1 | 6.9.7-1 | Fixed |
| debian/linux(Debian 14) | < 6.9.7-1 | 6.9.7-1 | Fixed |
| Linux kernel | < 6.6.33; < 6.9.4; < 6.10; = 6.6 +6 more | 6.6.33, 6.9.4, 6.10, 195aba96b854dd664768f382cd1db375d8181f88, 1547183852dcdfcc25878db7dd3620509217b0cd, de13c56f99477b56980c7e00b09c776d16b7563d | Fixed |
| Microsoft azure linux | < 6.6.35.1-4 | 6.6.35.1-4 | Fixed |
| Microsoft cbl mariner | < 5.15.160.1-1 | 5.15.160.1-1 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-44.44 | 6.8.0-44.44 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1011.12 | 6.8.0-1011.12 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.35.1-4 | 6.6.35.1-4 |
| Microsoft cbl mariner | < 5.15.160.1-1 | 5.15.160.1-1 |
| debian/linux(Debian:13) | < 6.9.7-1 | 6.9.7-1 |
| debian/linux(Debian:14) | < 6.9.7-1 | 6.9.7-1 |
| Linux kernel | >= a86a42ac2bd652fdc7836a9d880c306a2485c142, < 1547183852dcdfcc25878db7dd3620509217b0cd | 1547183852dcdfcc25878db7dd3620509217b0cd |
| Linux kernel | >= a86a42ac2bd652fdc7836a9d880c306a2485c142, < de13c56f99477b56980c7e00b09c776d16b7563d | de13c56f99477b56980c7e00b09c776d16b7563d |
| Linux kernel | >= a86a42ac2bd652fdc7836a9d880c306a2485c142, < 195aba96b854dd664768f382cd1db375d8181f88 | 195aba96b854dd664768f382cd1db375d8181f88 |
| Linux kernel | = 6.6 | No fix listed |
| Linux kernel | < 6.6.33 | 6.6.33 |
| Linux kernel | < 6.9.4 | 6.9.4 |
| Linux kernel | < 6.10 | 6.10 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-44.44 | 6.8.0-44.44 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1011.12 | 6.8.0-1011.12 |
| Linux kernel | >= 6.6, < 6.6.33 | 6.6.33 |
| Linux kernel | >= 6.7, < 6.9.4 | 6.9.4 |
| Linux kernel | = 6.10-rc1 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-36477 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6999-1 vendor-advisory
- USN-7004-1 vendor-advisory
- USN-7008-1 vendor-advisory
- USN-6999-2 vendor-advisory
- USN-7029-1 vendor-advisory
- www.cve.org
- git.kernel.org mailing-list patch
- git.kernel.org mailing-list patch
- git.kernel.org mailing-list patch
- ENISA EUVD EUVD-2024-36113 third-party-advisory