{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-36477","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-06-21T11:16:40.603Z","datePublished":"2024-06-21T11:18:46.822Z","dateUpdated":"2025-05-04T09:11:06.625Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2025-05-04T09:11:06.625Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer\n\nThe TPM SPI transfer mechanism uses MAX_SPI_FRAMESIZE for computing the\nmaximum transfer length and the size of the transfer buffer. As such, it\ndoes not account for the 4 bytes of header that prepends the SPI data\nframe. This can result in out-of-bounds accesses and was confirmed with\nKASAN.\n\nIntroduce SPI_HDRSIZE to account for the header and use to allocate the\ntransfer buffer."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/tpm_tis_spi_main.c"],"versions":[{"version":"a86a42ac2bd652fdc7836a9d880c306a2485c142","lessThan":"1547183852dcdfcc25878db7dd3620509217b0cd","status":"affected","versionType":"git"},{"version":"a86a42ac2bd652fdc7836a9d880c306a2485c142","lessThan":"de13c56f99477b56980c7e00b09c776d16b7563d","status":"affected","versionType":"git"},{"version":"a86a42ac2bd652fdc7836a9d880c306a2485c142","lessThan":"195aba96b854dd664768f382cd1db375d8181f88","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/tpm_tis_spi_main.c"],"versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.33","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.9.4","lessThanOrEqual":"6.9.*","status":"unaffected","versionType":"semver"},{"version":"6.10","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.9.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.10"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd"},{"url":"https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d"},{"url":"https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88"}],"title":"tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-21T13:25:38.377073Z","id":"CVE-2024-36477","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-06-21T13:25:50.272Z"}},{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T03:37:05.216Z"},"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/1547183852dcdfcc25878db7dd3620509217b0cd","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/de13c56f99477b56980c7e00b09c776d16b7563d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/195aba96b854dd664768f382cd1db375d8181f88","tags":["x_transferred"]}]}]}}