CVE-2022-50043
net: fix potential refcount leak in ndisc_router_discovery()
Check your servers for CVE-2022-50043
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50043 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6b2e04bc240fe9be9e690059f710e9f95346d34d, before ffb15594433391fd7885eb88ce5a7f7bdeefbb15 affected from 6b2e04bc240fe9be9e690059f710e9f95346d34d, before 7998043d31d000c3a93f46182e6569dd0eecda34 affected from 6b2e04bc240fe9be9e690059f710e9f95346d34d, before 7396ba87f1edf549284869451665c7c4e74ecd4f
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.15.63 up to and including 5.15.* unaffected from 5.19.4 up to and including 5.19.* unaffected 6.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50043 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50043
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50043
trivy image --scanners vuln IMAGE | grep CVE-2022-50043
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/ffb15594433391fd7885eb88ce5a7f7bdeefbb15 git.kernel.org
- https://git.kernel.org/stable/c/7998043d31d000c3a93f46182e6569dd0eecda34 git.kernel.org
- https://git.kernel.org/stable/c/7396ba87f1edf549284869451665c7c4e74ecd4f git.kernel.org
Source: the record CVE-2022-50043 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse