← Database

CVE-2026-23431

MEDIUM CVSS: 5.5 Published: 2026-04-03 Modified: 2026-07-24

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 Platforms

Linux Linux Kernel

Weakness Type

CWE-401

References