{"id":"CVE-2021-47514","state":"PUBLISHED","title":"devlink: fix netns refcount leak in devlink_nl_cmd_reload()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndevlink: fix netns refcount leak in devlink_nl_cmd_reload()\n\nWhile preparing my patch series adding netns refcount tracking,\nI spotted bugs in devlink_nl_cmd_reload()\n\nSome error paths forgot to release a refcount on a netns.\n\nTo fix this, we can reduce the scope of get_net()/put_net()\nsection around the call to devlink_reload().","publishedAt":"2024-05-24T15:09:28.686Z","updatedAt":"2026-05-11T13:56:08.141Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ccdf07219da6bd1f43c6ddcde4c0e36993c7365a","status":"affected","lessThan":"4b7e90672af8e0c78205db006f1b0a20ebd07f5f","versionType":"git"},{"version":"ccdf07219da6bd1f43c6ddcde4c0e36993c7365a","status":"affected","lessThan":"fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded","versionType":"git"},{"version":"ccdf07219da6bd1f43c6ddcde4c0e36993c7365a","status":"affected","lessThan":"4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/devlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.85","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.8","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/devlink.c"]}],"references":["https://git.kernel.org/stable/c/4b7e90672af8e0c78205db006f1b0a20ebd07f5f","https://git.kernel.org/stable/c/fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded","https://git.kernel.org/stable/c/4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47514.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47514","state":"PUBLISHED","datePublished":"2024-05-24T15:09:28.686Z","dateUpdated":"2026-05-11T13:56:08.141Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-24T15:02:54.824Z"},"containers":{"cna":{"title":"devlink: fix netns refcount leak in devlink_nl_cmd_reload()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndevlink: fix netns refcount leak in devlink_nl_cmd_reload()\n\nWhile preparing my patch series adding netns refcount tracking,\nI spotted bugs in devlink_nl_cmd_reload()\n\nSome error paths forgot to release a refcount on a netns.\n\nTo fix this, we can reduce the scope of get_net()/put_net()\nsection around the call to devlink_reload()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ccdf07219da6bd1f43c6ddcde4c0e36993c7365a","status":"affected","lessThan":"4b7e90672af8e0c78205db006f1b0a20ebd07f5f","versionType":"git"},{"version":"ccdf07219da6bd1f43c6ddcde4c0e36993c7365a","status":"affected","lessThan":"fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded","versionType":"git"},{"version":"ccdf07219da6bd1f43c6ddcde4c0e36993c7365a","status":"affected","lessThan":"4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/devlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.85","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.8","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/devlink.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4b7e90672af8e0c78205db006f1b0a20ebd07f5f"},{"url":"https://git.kernel.org/stable/c/fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded"},{"url":"https://git.kernel.org/stable/c/4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:56:08.141Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.85"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-47514","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-24T19:18:46.534167Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:14:53.095Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/4b7e90672af8e0c78205db006f1b0a20ebd07f5f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/fe30b70ca84da9c4aca85c03ad86e7a9b89c5ded","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:39:59.599Z"}}]}}}