spi: mpc52xx: fix use-after-free on registration failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 42bbb70980f3720b0ae6da6af862af0e95a04351 · < f62c060272b9d7423b1650b844e8e4e7b8f9f925| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: mpc52xx: fix use-after-free on registration failure
Make sure to disable and free the interrupts in case controller registration fails to avoid a potential use-after-free and resource leak.
This issue was flagged by Sashiko when reviewing a controller deregistration fix.
From the CVE record · Linux
The Linux kernel’s mpc52xx SPI driver may leave interrupts active and resources allocated if controller registration fails, creating a potential use-after-free and resource leak. The input does not specify how an attacker could trigger or exploit the issue, or whether authentication or user interaction is required.
Engineers running Linux kernels with the mpc52xx SPI driver should check their kernel versions; affected versions are not specified.