Skip to contentSkip to conversation

CVE-2026-46241: spi: mpc52xx: fix use-after-free on registration failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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: mpc52xx: fix use-after-free on registration failure

Make sure to disable and free the interrupts in case controller registration fails to avoid a potential use-after-free and resource leak.

This issue was flagged by Sashiko when reviewing a controller deregistration fix.

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

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

	Issue introduced in 2.6.33 with commit 42bbb70980f3720b0ae6da6af862af0e95a04351 and fixed in 6.12.90 with commit 8b49b6aadd0c622ca7d68b4a53ae10362e221cf3
	Issue introduced in 2.6.33 with commit 42bbb70980f3720b0ae6da6af862af0e95a04351 and fixed in 6.18.32 with commit 336d9ad7560b3baba17af06727a888040ee93390
	Issue introduced in 2.6.33 with commit 42bbb70980f3720b0ae6da6af862af0e95a04351 and fixed in 7.0.9 with commit 5c77f11b9b5f1ad5a704dad875260c44016ede10
	Issue introduced in 2.6.33 with commit 42bbb70980f3720b0ae6da6af862af0e95a04351 and fixed in 7.1-rc1 with commit f62c060272b9d7423b1650b844e8e4e7b8f9f925

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

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-mpc52xx.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/8b49b6aadd0c622ca7d68b4a53ae10362e221cf3
	https://git.kernel.org/stable/c/336d9ad7560b3baba17af06727a888040ee93390
	https://git.kernel.org/stable/c/5c77f11b9b5f1ad5a704dad875260c44016ede10
	https://git.kernel.org/stable/c/f62c060272b9d7423b1650b844e8e4e7b8f9f925