spi: core: Abort active target transfer on controller suspend
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: core: Abort active target transfer on controller suspend
When an SPI controller operating in target mode has a transfer in progress at the time of system suspend, the suspend path proceeds without aborting the ongoing transfer. This can leave the hardware in an inconsistent state, potentially causing the system to hang or fail to resume cleanly.
Fix this by invoking the controller's target_abort callback from spi_controller_suspend() when the controller is in target mode and the callback is registered. This ensures any active target transfer is cleanly terminated before the controller is suspended.
From the CVE record · Linux
The Linux kernel SPI core can suspend a controller in target mode without aborting an active transfer. This may leave the hardware inconsistent, causing a hang or failure to resume cleanly. The input does not describe an attacker, access requirements, or user interaction.
Engineers running Linux kernels with SPI controllers in target mode should check their versions; affected versions are not specified.