CVE-2022-50043
publishednet: fix potential refcount leak in ndisc_router_discovery()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux6b2e04bc240fe9be9e690059f710e9f95346d34d to < ffb15594433391fd7885eb88ce5a7f7bdeefbb15 · 6b2e04bc240fe9be9e690059f710e9f95346d34d to < 7998043d31d000c3a93f46182e6569dd0eecda34 · 6b2e04bc240fe9be9e690059f710e9f95346d34d to < 7396ba87f1edf549284869451665c7c4e74ecd4f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.15.63 through 5.15.* (unaffected · semver) · 5.19.4 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2022-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-008 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-008 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-008 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.15-2022-008 |
Description
In the Linux kernel, the following vulnerability has been resolved: net: fix potential refcount leak in ndisc_router_discovery() The issue happens on specific paths in the function. After both the object `rt` and `neigh` are grabbed successfully, when `lifetime` is nonzero but the metric needs change, the function just deletes the route and set `rt` to NULL. Then, it may try grabbing `rt` and `neigh` again if above conditions hold. The function simply overwrite `neigh` if succeeds or returns if fails, without decreasing the reference count of previous `neigh`. This may result in memory leaks. Fix it by decrementing the reference count of `neigh` in place.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 6b2e04bc240fe9be9e690059f710e9f95346d34d to < ffb15594433391fd7885eb88ce5a7f7bdeefbb15 (affected · git)6b2e04bc240fe9be9e690059f710e9f95346d34d to < 7998043d31d000c3a93f46182e6569dd0eecda34 (affected · git)6b2e04bc240fe9be9e690059f710e9f95346d34d to < 7396ba87f1edf549284869451665c7c4e74ecd4f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.12 (affected)0 to < 5.12 (unaffected · semver)5.15.63 through 5.15.* (unaffected · semver)5.19.4 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
net: fix potential refcount leak in ndisc_router_discovery()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f0e912b28c636cf7aa8068f9b651173c235f71b6bd41974fb45f0ec802a26145
- Ingested
- 07 Nov 2026, 23:07:48 UTC
- Source record
- Official CVE record