spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.206.19.107.0In 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.
From the CVE record · Linux
The Linux kernel’s amlogic-spisg driver leaks memory if its probe fails after allocating an SPI controller. The input does not describe an attacker-controlled trigger, authentication requirements, or user interaction.
Engineers running Linux systems that use the amlogic-spisg driver should check their kernel versions; affected versions are not specified.