spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback
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.226.19.127.0In the Linux kernel, the following vulnerability has been resolved:
spi: amlogic: spifc-a4: unregister ECC engine on probe failure and remove() callback
aml_sfc_probe() registers the on-host NAND ECC engine, but teardown was missing from both probe unwind and remove-time cleanup. Add a devm cleanup action after successful registration so nand_ecc_unregister_on_host_hw_engine() runs automatically on probe failures and during device removal.
From the CVE record · Linux
The Amlogic spifc-a4 SPI driver registers an on-host NAND ECC engine but does not unregister it if probing fails or the device is removed. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the Amlogic spifc-a4 SPI driver should check their kernel; affected versions are not specified.