CVE-2026-31489 spi: meson-spicc: Fix double-put in remove path

High 7.8 Published Updated

A double-put bug in the Meson SPI driver can cause a use-after-free, leading to a kernel crash 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-2026-31489?

CVE-2026-31489 is a high-severity use after free vulnerability in Linux kernel, published on 22 Apr 2026. 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: meson-spicc: Fix double-put in remove path

meson_spicc_probe() registers the controller with devm_spi_register_controller(), so teardown already drops the controller reference via devm cleanup.

Calling spi_controller_put() again in meson_spicc_remove() causes a double-put.

Weakness: CWE-415

Which versions are affected by CVE-2026-31489?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-31489?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-31489 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-83258, BELL-CVE-2026-31489, DEBIAN-CVE-2026-31489, GHSA-2pvh-447j-v7m6, ROOT-OS-DEBIAN-11-CVE-2026-31489, ROOT-OS-DEBIAN-12-CVE-2026-31489 and 3 more.

Is CVE-2026-31489 in your software?

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

Check your SBOMs for free