net: sparx5: unregister blocking notifier on init failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d6fce5141929697a27f029c633433d487f6f62cb · < 17f113e7b622dc850992ade540181717de6a8561| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sparx5: unregister blocking notifier on init failure
sparx5_register_notifier_blocks() registers the switchdev blocking notifier before allocating the ordered workqueue. If the workqueue allocation fails, the error path unregisters the switchdev and netdevice notifiers, but leaves the blocking notifier registered.
Add a separate error label for the workqueue allocation failure path and unregister the switchdev blocking notifier there.
From the CVE record · Linux
The Linux kernel's sparx5 driver can leave a switchdev blocking notifier registered if workqueue allocation fails during initialization. The input does not specify what an attacker could do, whether access or user interaction is required, or how the failure could be triggered.
Engineers running Linux kernels with the sparx5 driver should check their versions; affected versions are not specified.