CVE-2026-23182: spi: tegra: Fix a memory leak in tegra_slink_probe()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
spi: tegra: Fix a memory leak in tegra_slink_probe()
In tegra_slink_probe(), when platform_get_irq() fails, it directly returns from the function with an error code, which causes a memory leak.
Replace it with a goto label to ensure proper cleanup.
The Linux kernel CVE team has assigned CVE-2026-23182 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15.139 with commit b64683f5d7282f7b160e9867e33cdac00b5c792b and fixed in 5.15.200 with commit 6a04dc650cef8d52a1ccb4ae245dbe318ffff32e Issue introduced in 6.1.63 with commit 5c25f89c00b97844d0427f0f96818a15714bd609 and fixed in 6.1.163 with commit 327b71326cc1834bc031e8f52a470a18dfd9caa6 Issue introduced in 6.6.2 with commit 46ee23101f32a1ced5335d5407d5ecffd160ccdf and fixed in 6.6.124 with commit 126a09f4fcd2b895a818ca43fde078d907c1ac9a Issue introduced in 6.7 with commit eb9913b511f10968a02cfa5329a896855dd152a3 and fixed in 6.12.70 with commit 075415ae18b5b3e4d0187962d538653154216fe7 Issue introduced in 6.7 with commit eb9913b511f10968a02cfa5329a896855dd152a3 and fixed in 6.18.10 with commit b8eec12aa666c11f8a6ad1488c568f85c58875fa Issue introduced in 6.7 with commit eb9913b511f10968a02cfa5329a896855dd152a3 and fixed in 6.19 with commit 41d9a6795b95d6ea28439ac1e9ce8c95bbca20fc Issue introduced in 6.5.12 with commit 4eb8065494ca19caba3f45fc83941fd568a8c3cd
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-23182
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-tegra20-slink.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/6a04dc650cef8d52a1ccb4ae245dbe318ffff32e https://git.kernel.org/stable/c/327b71326cc1834bc031e8f52a470a18dfd9caa6 https://git.kernel.org/stable/c/126a09f4fcd2b895a818ca43fde078d907c1ac9a https://git.kernel.org/stable/c/075415ae18b5b3e4d0187962d538653154216fe7 https://git.kernel.org/stable/c/b8eec12aa666c11f8a6ad1488c568f85c58875fa https://git.kernel.org/stable/c/41d9a6795b95d6ea28439ac1e9ce8c95bbca20fc