Skip to contentSkip to conversation

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

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-31489 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 6.12.80 with commit 40ad0334c17b23d8b66b1082ad1478a6202e90e2
	Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 6.18.21 with commit da06a104f0486355073ff0d1bcb1fcbebb7080d6
	Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 6.19.11 with commit 9b812ceb75a6260c17c91db4b9e74ead8cfa06f5
	Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 7.0 with commit 63542bb402b7013171c9f621c28b609eda4dbf1f
	Issue introduced in 4.14.244 with commit ff056817560d72363b463ddac27822dc8c121280
	Issue introduced in 4.19.203 with commit 683b47d0ebb10ba0d272604b09686e023d10d40c
	Issue introduced in 5.4.140 with commit a5bf7ef13ebf6adf62a69ab3542d4fc0564c082e
	Issue introduced in 5.10.58 with commit 05565b469358a9a03034f7f712d83590a9f125a4
	Issue introduced in 5.13.10 with commit f2ca988aba4eaad1319e80eb1316a4ba5dbd6897

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31489

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/spi/spi-meson-spicc.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/40ad0334c17b23d8b66b1082ad1478a6202e90e2
	https://git.kernel.org/stable/c/da06a104f0486355073ff0d1bcb1fcbebb7080d6
	https://git.kernel.org/stable/c/9b812ceb75a6260c17c91db4b9e74ead8cfa06f5
	https://git.kernel.org/stable/c/63542bb402b7013171c9f621c28b609eda4dbf1f