All reports
Low

kernel: spi: don't unoptimize message in spi_async()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-42249

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-22

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

A flaw was found in the Linux kernel's Serial Peripheral Interface (SPI) subsystem. Premature cleanup occurs during asynchronous transfer handling when a message is still queued and waiting to be transferred. A local user could exploit this flaw to cause message corruption while the data is actively being processed by the controller driver.