{"id":"CVE-2022-50043","state":"PUBLISHED","title":"net: fix potential refcount leak in ndisc_router_discovery()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix potential refcount leak in ndisc_router_discovery()\n\nThe issue happens on specific paths in the function. After both the\nobject `rt` and `neigh` are grabbed successfully, when `lifetime` is\nnonzero but the metric needs change, the function just deletes the\nroute and set `rt` to NULL. Then, it may try grabbing `rt` and `neigh`\nagain if above conditions hold. The function simply overwrite `neigh`\nif succeeds or returns if fails, without decreasing the reference\ncount of previous `neigh`. This may result in memory leaks.\n\nFix it by decrementing the reference count of `neigh` in place.","publishedAt":"2025-06-18T11:01:44.186Z","updatedAt":"2026-05-11T19:11:44.374Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b2e04bc240fe9be9e690059f710e9f95346d34d","status":"affected","lessThan":"ffb15594433391fd7885eb88ce5a7f7bdeefbb15","versionType":"git"},{"version":"6b2e04bc240fe9be9e690059f710e9f95346d34d","status":"affected","lessThan":"7998043d31d000c3a93f46182e6569dd0eecda34","versionType":"git"},{"version":"6b2e04bc240fe9be9e690059f710e9f95346d34d","status":"affected","lessThan":"7396ba87f1edf549284869451665c7c4e74ecd4f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/ndisc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.15.63","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.4","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/ndisc.c"]}],"references":["https://git.kernel.org/stable/c/ffb15594433391fd7885eb88ce5a7f7bdeefbb15","https://git.kernel.org/stable/c/7998043d31d000c3a93f46182e6569dd0eecda34","https://git.kernel.org/stable/c/7396ba87f1edf549284869451665c7c4e74ecd4f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50043.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50043","state":"PUBLISHED","datePublished":"2025-06-18T11:01:44.186Z","dateUpdated":"2026-05-11T19:11:44.374Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.399Z"},"containers":{"cna":{"title":"net: fix potential refcount leak in ndisc_router_discovery()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fix potential refcount leak in ndisc_router_discovery()\n\nThe issue happens on specific paths in the function. After both the\nobject `rt` and `neigh` are grabbed successfully, when `lifetime` is\nnonzero but the metric needs change, the function just deletes the\nroute and set `rt` to NULL. Then, it may try grabbing `rt` and `neigh`\nagain if above conditions hold. The function simply overwrite `neigh`\nif succeeds or returns if fails, without decreasing the reference\ncount of previous `neigh`. This may result in memory leaks.\n\nFix it by decrementing the reference count of `neigh` in place."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b2e04bc240fe9be9e690059f710e9f95346d34d","status":"affected","lessThan":"ffb15594433391fd7885eb88ce5a7f7bdeefbb15","versionType":"git"},{"version":"6b2e04bc240fe9be9e690059f710e9f95346d34d","status":"affected","lessThan":"7998043d31d000c3a93f46182e6569dd0eecda34","versionType":"git"},{"version":"6b2e04bc240fe9be9e690059f710e9f95346d34d","status":"affected","lessThan":"7396ba87f1edf549284869451665c7c4e74ecd4f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/ndisc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"5.15.63","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.4","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/ndisc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ffb15594433391fd7885eb88ce5a7f7bdeefbb15"},{"url":"https://git.kernel.org/stable/c/7998043d31d000c3a93f46182e6569dd0eecda34"},{"url":"https://git.kernel.org/stable/c/7396ba87f1edf549284869451665c7c4e74ecd4f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:11:44.374Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.15.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}