5.5medium
devlink: fix netns refcount leak in devlink_nl_cmd_reload()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: devlink: fix netns refcount leak in devlink_nl_cmd_reload() While preparing my patch series adding netns refcount tracking, I spotted bugs in devlink_nl_cmd_reload() Some error paths forgot to release a refcount on a netns. To fix this, we can reduce the scope of get_net()/put_net() section around the call to devlink_reload().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ccdf07219da6bd1f43c6ddcde4c0e36993c7365a before 4b7e90672af8e0c78205db006f1b0a20ebd07f5f, from ccdf07219da6bd1f43c6ddcde4c0e36993c7365a before fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded, from ccdf07219da6bd1f43c6ddcde4c0e36993c7365a before 4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186, 5.10 Not affected: before 5.10, from 5.10.85 up to 5.10.*, from 5.15.8 up to 5.15.*, from 5.16 up to * | CVE List |
| linux linux_kernel | from 5.10 before 5.10.85, from 5.11 before 5.15.8, 5.16 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: devlink: fix netns refcount leak in devlink_nl_cmd_reload() While preparing my patch series adding netns refcount tracking, I spotted bugs in devlink_nl_cmd_reload() Some error paths forgot to release a refcount on a netns. To fix this, we can reduce the scope of get_net()/put_net() section around the call to devlink_reload().
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: devlink: corrige la fuga de refcount de netns en devlink_nl_cmd_reload() Mientras preparaba mi serie de parches agregando el seguimiento de refcount de netns, detecté errores en devlink_nl_cmd_reload() Algunas rutas de error olvidaron publicar un refcount en netns. Para solucionar este problema, podemos reducir el alcance de la sección get_net()/put_net() alrededor de la llamada a devlink_reload().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47514 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47514 changed 2026-06-17 | Public domain |