CVE-2026-23068 Details
Description
In the Linux kernel, the following vulnerability has been resolved: spi: spi-sprd-adi: Fix double free in probe error path The driver currently uses spi_alloc_host() to allocate the controller but registers it using devm_spi_register_controller(). If devm_register_restart_handler() fails, the code jumps to the put_ctlr label and calls spi_controller_put(). However, since the controller was registered via a devm function, the device core will automatically call spi_controller_put() again when the probe fails. This results in a double-free of the spi_controller structure. Fix this by switching to devm_spi_alloc_host() and removing the manual spi_controller_put() call.
A double free vulnerability has been identified in the Linux kernel's SPI driver for SPRD ADI controllers. This issue arises during the probe error handling process. The driver allocates the SPI controller using 'spi_alloc_host' but registers it with 'devm_spi_register_controller'. If the registration of a restart handler fails, the code manually calls 'spi_controller_put', leading to a double free since the controller was registered with a 'devm' function that would automatically handle the cleanup. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been fixed in the Linux kernel by changing the allocation method to 'devm_spi_alloc_host', which integrates the allocation and registration processes, and removing the manual 'spi_controller_put' call. Users should upgrade to the latest version of the Linux kernel where this fix is applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/346775f2b4cf839177e8e86b94aa180a06dc15b0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/383d4f5cffcc8df930d95b06518a9d25a6d74aac | kernel.org | Patch |
| https://git.kernel.org/stable/c/417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c | kernel.org | Patch |
| https://git.kernel.org/stable/c/bddd3d10d039729b81cfb0804520c8832a701a0e | kernel.org | Patch |
| https://git.kernel.org/stable/c/f6d6b3f172df118db582fe5ec43ae223a55d99cf | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.17, < 6.1.162 >= 6.2, < 6.6.122 >= 6.7, < 6.12.68 >= 6.13, < 6.18.8 6.19 rc1 6.19 rc2 6.19 rc3 6.19 rc4 6.19 rc5 6.19 rc6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Mar 13, 2026 | Initial Analysis | [email protected] |
| Feb 6, 2026 | CVE Modified | kernel.org |
| Feb 4, 2026 | New CVE Received | kernel.org |