CVE-2026-23431 PUBLISHED

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

Assigner: Linux
Reserved: 13.01.2026 Published: 03.04.2026 Updated: 03.04.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from cef9991e04aed3305c61c392e880f6e01a0c2ea4 to bec21d97c968a4806939eb2946df49ea6c341bde (excl.)
  • affected from cef9991e04aed3305c61c392e880f6e01a0c2ea4 to 8e28a01b69f7ea8df7ceb15470cfe643b2828f4f (excl.)
  • affected from cef9991e04aed3305c61c392e880f6e01a0c2ea4 to b8db9552997924b750e727a625a30eaa4603bbb9 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.17 is affected
  • unaffected from 0 to 6.17 (excl.)
  • unaffected from 6.18.20 to 6.18.* (incl.)
  • unaffected from 6.19.10 to 6.19.* (incl.)
  • unaffected from 7.0-rc5 to * (incl.)

References