CVE-2026-46296: spi: s3c64xx: fix NULL-deref on driver unbind
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
spi: s3c64xx: fix NULL-deref on driver unbind
A change moving DMA channel allocation from probe() back to s3c64xx_spi_prepare_transfer() failed to remove the corresponding deallocation from remove().
Drop the bogus DMA channel release from remove() to avoid triggering a NULL-pointer dereference on driver unbind.
This issue was flagged by Sashiko when reviewing a controller deregistration fix.
The Linux kernel CVE team has assigned CVE-2026-46296 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit f52b03c707444c5a3d1a0b9c5724f93ddc3c588e and fixed in 6.6.140 with commit 1108b8722b9ff0cdd3e8aa18d98244fcd93b6760 Issue introduced in 6.0 with commit f52b03c707444c5a3d1a0b9c5724f93ddc3c588e and fixed in 6.12.88 with commit 323a258f4b1916b5a3098618e036e033b2f2317f Issue introduced in 6.0 with commit f52b03c707444c5a3d1a0b9c5724f93ddc3c588e and fixed in 6.18.30 with commit 1b66f16a571a10ba8889ac471755c8af9c5b9266 Issue introduced in 6.0 with commit f52b03c707444c5a3d1a0b9c5724f93ddc3c588e and fixed in 7.0.7 with commit 22788b1a8611380b141e09a8896702e32d164238 Issue introduced in 6.0 with commit f52b03c707444c5a3d1a0b9c5724f93ddc3c588e and fixed in 7.1-rc1 with commit 45daacbead8a009844bd5dba6cfa731332184d17
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-46296
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-s3c64xx.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/1108b8722b9ff0cdd3e8aa18d98244fcd93b6760 https://git.kernel.org/stable/c/323a258f4b1916b5a3098618e036e033b2f2317f https://git.kernel.org/stable/c/1b66f16a571a10ba8889ac471755c8af9c5b9266 https://git.kernel.org/stable/c/22788b1a8611380b141e09a8896702e32d164238 https://git.kernel.org/stable/c/45daacbead8a009844bd5dba6cfa731332184d17