# CVE-2021-47514: devlink: fix netns refcount leak in devlink_nl_cmd_reload()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-24T15:09:28.686Z
- Modified: 2026-06-17T04:17:40.137Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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().

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.10 before 5.10.85; from 5.11 before 5.15.8; 5.16

## References

- <https://git.kernel.org/stable/c/4b7e90672af8e0c78205db006f1b0a20ebd07f5f> (patch)
- <https://git.kernel.org/stable/c/fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded> (patch)
- <https://git.kernel.org/stable/c/4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186> (patch)

## Sources

- CVE List: [CVE-2021-47514](https://www.cve.org/CVERecord?id=CVE-2021-47514), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47514](https://nvd.nist.gov/vuln/detail/CVE-2021-47514), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47514 · Whole record: https://cve.day/CVE-2021-47514.json · Rebuilt by cve.day 2026-11-25T22:58:08.895Z
