spi: s3c64xx: fix NULL-deref on driver unbind
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f52b03c707444c5a3d1a0b9c5724f93ddc3c588e · < 45daacbead8a009844bd5dba6cfa731332184d17| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: s3c64xx: fix NULL-deref on driver unbind
A change moving DMA channel allocation from probe() back to s3c64xx_spi_prepare_transfer() failed to remove the corresponding deallocation from remove().
Drop the bogus DMA channel release from remove() to avoid triggering a NULL-pointer dereference on driver unbind.
This issue was flagged by Sashiko when reviewing a controller deregistration fix.
From the CVE record · Linux
The Linux kernel's s3c64xx SPI driver can dereference a NULL pointer when the driver is unbound because its removal path releases a DMA channel incorrectly. The trigger is driver unbinding; the input does not specify authentication requirements or whether other user interaction is needed.
Engineers running Linux kernels with the s3c64xx SPI driver should check their kernel versions; affected versions are not specified.