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

High 7.8 Published Updated

A race condition in the Linux kernel SPI subsystem allows message corruption, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42249?

CVE-2024-42249 is a high-severity vulnerability in Linux kernel, published on 7 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2024-42249?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42249?

Apply the vendor's patch.

Is CVE-2024-42249 being exploited?

There is no known exploitation of CVE-2024-42249 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-42249, DEBIAN-CVE-2024-42249, GHSA-jvrg-cvpm-4p85, UBUNTU-CVE-2024-42249.

Is CVE-2024-42249 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free