spi: imx: fix use-after-free on unbind
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 307c897db762d1e0feee9477276b08f6deca4a5b · < 1c78c2002380a1fe31bfb01a3d5f29809e55a096| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: imx: fix use-after-free on unbind
The SPI subsystem frees the controller and any subsystem allocated driver data as part of deregistration (unless the allocation is device managed).
Take another reference before deregistering the controller so that the driver data is not freed until the driver is done with it.
From the CVE record · Linux
The Linux kernel's imx SPI driver has a use-after-free during controller unbinding. Deregistration can free driver data before the driver finishes using it; the input does not establish how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with the imx SPI driver should check their kernel versions; affected versions are not specified.