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

Published Apr 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

In amlspisgprobe(), ctlr is allocated by spialloctarget()/spiallochost(), but fails to call spicontrollerput() in several error paths. This leads to a memory leak whenever the driver fails to probe after the initial allocation.

Convert to use devmspiallochost()/devmspialloctarget() to fix the memory leak.

Affected Software

11 affected components
Linux Linux kernel (amlogic-spisg)
Linux Linux kernel>=6.17.1<6.18.20
Linux Linux kernel>=6.19<6.19.10
Linux Linux kernel=6.17
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6
Linux Linux kernel=7.0-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In aml_spisg_probe(), allocate ctlr using devm_spi_alloc_host()/devm_spi_alloc_target() so the controller is properly released on error paths.

    Linux kernel driver: spi: amlogic-spisg (aml_spisg_probe) Use devm_spi_alloc_host()/devm_spi_alloc_target() instead of spi_alloc_host()/spi_alloc_target() = devm_spi_alloc_host()/devm_spi_alloc_target()
  2. Configuration

    Fix the probe error paths in aml_spisg_probe() to ensure spi_controller_put() is called when allocation leads to a controller that needs releasing; this resolves the memory leak when probe fails after spi_alloc_target()/spi_alloc_host().

    Linux kernel driver: spi: amlogic-spisg (aml_spisg_probe) Error-path cleanup = Call spi_controller_put()

Event History

Apr 3, 2026
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
Description
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203