Skip to contentSkip to conversation

CVE-2026-46083: spi: fix resource leaks on device setup failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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: fix resource leaks on device setup failure

Make sure to call controller cleanup() if spi_setup() fails while registering a device to avoid leaking any resources allocated by setup().

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

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

	Issue introduced in 5.13 with commit c7299fea67696db5bd09d924d1f1080d894f92ef and fixed in 6.6.140 with commit a2c817c629430fbbd54273525b472dac96e2c8fd
	Issue introduced in 5.13 with commit c7299fea67696db5bd09d924d1f1080d894f92ef and fixed in 6.12.86 with commit 1e774294b2f944f59e03a04eb438768a4b93c3ce
	Issue introduced in 5.13 with commit c7299fea67696db5bd09d924d1f1080d894f92ef and fixed in 6.18.27 with commit 11baa8b24bcb07ae2048f2566a220021d766abe0
	Issue introduced in 5.13 with commit c7299fea67696db5bd09d924d1f1080d894f92ef and fixed in 7.0.4 with commit dbcead54b12468d9aa54c0e1f0042d838ec3b0ae
	Issue introduced in 5.13 with commit c7299fea67696db5bd09d924d1f1080d894f92ef and fixed in 7.1-rc1 with commit db357034f7e0cf23f233f414a8508312dfe8fbbe
	Issue introduced in 5.4.126 with commit 3e7c190475d98099231ee8ae486d31b1e2e7535a
	Issue introduced in 5.10.44 with commit 4b8b7bc3a726268e5c15d9bafe27863a85fdfc8e
	Issue introduced in 5.12.11 with commit e92ac9263b06c39f05526ad15c90d228cdab60fd

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

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.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/a2c817c629430fbbd54273525b472dac96e2c8fd
	https://git.kernel.org/stable/c/1e774294b2f944f59e03a04eb438768a4b93c3ce
	https://git.kernel.org/stable/c/11baa8b24bcb07ae2048f2566a220021d766abe0
	https://git.kernel.org/stable/c/dbcead54b12468d9aa54c0e1f0042d838ec3b0ae
	https://git.kernel.org/stable/c/db357034f7e0cf23f233f414a8508312dfe8fbbe