spi: qup: 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 |
|
≥ 64ff247a978facc437d40f0c9b754675846a98f0 · < 55ecdcd12bc176b86fecbcb125ac814ac8fe857a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: qup: 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 QUP driver's remove callback can return early on an error, permanently leaking DMA resources. The issue occurs when waking the device fails during removal; the input does not describe an attacker path or specify network access, authentication, or user interaction requirements.
Engineers running the Linux kernel should check whether their deployments use the SPI QUP driver; affected versions are not specified.