Skip to contentSkip to conversation

CVE-2026-43004: spi: stm32-ospi: Fix resource leak in remove() callback

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

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: stm32-ospi: Fix resource leak in remove() callback

The remove() callback returned early if pm_runtime_resume_and_get() failed, skipping the cleanup of spi controller and other resources.

Remove the early return so cleanup completes regardless of PM resume result.

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

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

	Issue introduced in 6.15 with commit 79b8a705e26c08f8f09dd55f1dd56f2375973d2d and fixed in 6.18.22 with commit b4ec54c974c6ea68b309989dcc3d3511068f45f3
	Issue introduced in 6.15 with commit 79b8a705e26c08f8f09dd55f1dd56f2375973d2d and fixed in 6.19.12 with commit 0807532c5ebb72751bfe773e6ae79db0e9c57ab9
	Issue introduced in 6.15 with commit 79b8a705e26c08f8f09dd55f1dd56f2375973d2d and fixed in 7.0 with commit 73cd1f97946ae3796544448ff12c07f399bb2881

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-43004

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-stm32-ospi.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/b4ec54c974c6ea68b309989dcc3d3511068f45f3
	https://git.kernel.org/stable/c/0807532c5ebb72751bfe773e6ae79db0e9c57ab9
	https://git.kernel.org/stable/c/73cd1f97946ae3796544448ff12c07f399bb2881