CVE-2022-50043: net: fix potential refcount leak in ndisc_router_discovery()
In the Linux kernel, the following vulnerability has been resolved:
net: fix potential refcount leak in ndiscrouterdiscovery()
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50043?
CVE-2022-50043 is classified as a low severity vulnerability.
How do I fix CVE-2022-50043?
To fix CVE-2022-50043, update your Linux kernel to the latest version where the vulnerability has been addressed.
What systems are affected by CVE-2022-50043?
CVE-2022-50043 affects specific versions of the Linux kernel that utilize the net subsystem.
What causes CVE-2022-50043?
CVE-2022-50043 is caused by a potential reference count leak in the ndisc_router_discovery function.
Is CVE-2022-50043 exploitable remotely?
CVE-2022-50043 does not appear to be remotely exploitable as it requires local access to the affected system.