spi: imx: Don't skip cleanup in remove's error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d593574aff0ab846136190b1729c151c736727ec · < 11951c9e3f364d7ae3b568a0e52c8335d43066b5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: imx: Don't skip cleanup in remove's error path
Returning early in a platform driver's remove callback is wrong. In this case the dma resources are not released in the error path. this is never retried later and so this is a permanent leak. To fix this, only skip hardware disabling if waking the device fails.
From the CVE record · Linux
The Linux kernel SPI i.MX driver can permanently leak DMA resources when its remove callback returns early after failing to wake the device. The input does not specify an attacker action, authentication requirement, or user interaction needed to trigger this error path.
Engineers running the Linux kernel should check systems using the SPI i.MX driver; affected versions are not specified.