# CVE-2024-42249: spi: don't unoptimize message in spi_async()

- 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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-08-07T15:14:33.418Z
- Modified: 2026-08-05T11:36:03.625Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

spi: don't unoptimize message in spi_async()

Calling spi_maybe_unoptimize_message() in spi_async() is wrong because
the message is likely to be in the queue and not transferred yet. This
can corrupt the message while it is being used by the controller driver.

spi_maybe_unoptimize_message() is already called in the correct place
in spi_finalize_current_message() to balance the call to
spi_maybe_optimize_message() in spi_async().

(As written by CVE List.)

## Affected

- Linux Linux: from 7b1d87af14d9ae902ed0c5dc5fabf4eea5abdf02 before 8b9af6d67517ce4a0015928b3cf35bfd2b1bc1c2; from 7b1d87af14d9ae902ed0c5dc5fabf4eea5abdf02 before c86a918b1bdba78fb155184f8d88dfba1e63335d; 6.9 (not affected: before 6.9; from 6.9.10 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.9 before 6.9.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 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://git.kernel.org/stable/c/8b9af6d67517ce4a0015928b3cf35bfd2b1bc1c2> (patch)
- <https://git.kernel.org/stable/c/c86a918b1bdba78fb155184f8d88dfba1e63335d> (patch)

## Sources

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

---

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