CVE-2024-42249

spi: don't unoptimize message in spi_async()

State
Published
Severity
7.8 High
Published
Aug 7, 2024
Updated
Aug 5, 2026
Reserved
Jul 30, 2024

Read the record on cve.org

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().

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7b1d87af14d9ae902ed0c5dc5fabf4eea5abdf02 to before 8b9af6d67517ce4a0015928b3cf35bfd2b1bc1c2Affected
  • 7b1d87af14d9ae902ed0c5dc5fabf4eea5abdf02 to before c86a918b1bdba78fb155184f8d88dfba1e63335dAffected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.9.10 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.