devlink: fix net namespace reference leak in reload
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
devlink: fix net namespace reference leak in reload
devlink_nl_reload_doit() calls devlink_netns_get(), which returns a net with a held reference. When the requested namespace differs from the current one and the reload action is not DRIVER_REINIT, the function returns -EOPNOTSUPP without releasing the reference. Add the missing put_net() on this error path.
From the CVE record · Linux
The Linux kernel's devlink reload path leaks a network namespace reference when the requested namespace differs from the current one and the reload action is not DRIVER_REINIT. The input does not describe how an attacker could trigger this path or specify authentication or user-interaction requirements.
Engineers running the Linux kernel should check whether their version includes the devlink reload fix; affected versions are not specified.