spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
The on-host hardware ECC engine remains registered both when the spi_register_controller() function returns with an error and also on device removal.
Change the qcom_spi_probe() function to unregister the engine on the error path, and add the missing unregistering call to qcom_spi_remove() to avoid possible use-after-free issues.
From the CVE record · Linux
The SPI QPIC SNAND driver can leave its on-host hardware ECC engine registered when controller registration fails or the device is removed. This may cause a use-after-free; the input does not specify an attacker path or access requirements.
Engineers running Linux kernels with the SPI QPIC SNAND driver should check their systems; affected versions are not specified.