spi: fix use-after-free on controller registration failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 · < 8634e05b08ead636e926022f4a98416e13440df9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: fix use-after-free on controller registration failure
Make sure to deregister from driver core also in the unlikely event that per-cpu statistics allocation fails during controller registration to avoid use-after-free (of driver resources) and unclocked register accesses.
From the CVE record · Linux
The Linux kernel's SPI controller registration can leave a controller registered with the driver core if per-CPU statistics allocation fails. This can lead to use-after-free of driver resources and unclocked register accesses. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check their vendor's advisory; affected versions are not specified.