spi: cadence-quadspi: Implement refcount to handle unbind during busy
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a314f6367787ee1d767df9a2120f17e4511144d0 · < 7446284023e8ef694fb392348185349c773eefb3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: cadence-quadspi: Implement refcount to handle unbind during busy
driver support indirect read and indirect write operation with assumption no force device removal(unbind) operation. However force device removal(removal) is still available to root superuser.
Unbinding driver during operation causes kernel crash. This changes ensure driver able to handle such operation for indirect read and indirect write by implementing refcount to track attached devices to the controller and gracefully wait and until attached devices remove operation completed before proceed with removal operation.
From the CVE record · Linux
The Linux kernel cadence-quadspi driver can crash if it is forcibly unbound during an indirect read or write. Exploitation requires a root superuser to unbind the driver while that operation is in progress.
Operators running Linux kernels with the cadence-quadspi driver should check their systems; affected versions were not specified.