spi: mpc52xx: Add cancel_work_sync before module remove
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ca632f556697d45d67ed5cada7cedf3ddfe0db4b · < 90b72189de2cddacb26250579da0510b29a8b82b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: mpc52xx: Add cancel_work_sync before module remove
If we remove the module which will call mpc52xx_spi_remove it will free 'ms' through spi_unregister_controller. while the work ms->work will be used. The sequence of operations that may lead to a UAF bug.
Fix it by ensuring that the work is canceled before proceeding with the cleanup in mpc52xx_spi_remove.
From the CVE record · Linux
The Linux kernel’s mpc52xx SPI driver can free controller data while pending work still uses it. This use-after-free can occur when the module is removed; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the mpc52xx SPI driver should check whether their kernel includes the fix; affected versions are not specified.