CVE-2026-23431
JSON

5.5medium

spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom cef9991e04aed3305c61c392e880f6e01a0c2ea4 before bec21d97c968a4806939eb2946df49ea6c341bde, from cef9991e04aed3305c61c392e880f6e01a0c2ea4 before 8e28a01b69f7ea8df7ceb15470cfe643b2828f4f, from cef9991e04aed3305c61c392e880f6e01a0c2ea4 before b8db9552997924b750e727a625a30eaa4603bbb9, 6.17
Not affected: before 6.17, from 6.18.20 up to 6.18.*, from 6.19.10 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.17.1 before 6.18.20, from 6.19 before 6.19.10, 6.17, 7.0NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: spi: amlogic-spisg: Corrección de fuga de memoria en aml_spisg_probe() En aml_spisg_probe(), ctlr es asignado por spi_alloc_target()/spi_alloc_host(), pero no logra llamar a spi_controller_put() en varias rutas de error. Esto conduce a una fuga de memoria cada vez que el controlador no logra sondear después de la asignación inicial. Convertir para usar devm_spi_alloc_host()/devm_spi_alloc_target() para corregir la fuga de memoria.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23431 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-23431 changed 2026-07-24Public domain