What’s Vulnerable › Vulnerabilities
CVE-2026-23431: spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-03 · updated 2026-07-24
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: spi: amlogic-spisg: Fix memory leak in aml_spisg_probe() In aml_spisg_probe(), ctlr is allocated by spi_alloc_target()/spi_alloc_host(), but fails to call spi_controller_put() in several error paths. This leads to a memory leak whenever the driver fails to probe after the initial allocation. Convert to use devm_spi_alloc_host()/devm_spi_alloc_target() to fix the memory leak.
Affected products
- Linux kernel: from 6.17.1 before 6.18.20; from 6.19 before 6.19.10; 6.17, 7.0-rc1, 7.0-rc2, 7.0-rc3, 7.0-rc4, 7.0-rc5 (+2) — fixed in 6.18.20, 6.19.10
How to fix
Upgrade to a fixed version: Linux kernel 6.18.20, 6.19.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/8e28a01b69f7ea8df7ceb15470cfe643b2828f4f
- https://git.kernel.org/stable/c/b8db9552997924b750e727a625a30eaa4603bbb9
- https://git.kernel.org/stable/c/bec21d97c968a4806939eb2946df49ea6c341bde
Get alerted when CVE-2026-23431 or the next vulnerability affects your stack