CVE-2022-50043: net: fix potential refcount leak in ndisc_router_discovery()

Published Jun 18, 2025
·
Updated

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

4 affected components
Linux Linux kernel
Linux Linux kernel>=5.12<5.15.63
Linux Linux kernel>=5.16<5.19.4
Linux Linux kernel=6.0-rc1

Event History

Jun 18, 2025
CVE Published
via MITRE·11:01 AM
Data Sourced
via MITRE·11:01 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50043?

CVE-2022-50043 is classified as a low severity vulnerability.

2

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.

3

What systems are affected by CVE-2022-50043?

CVE-2022-50043 affects specific versions of the Linux kernel that utilize the net subsystem.

4

What causes CVE-2022-50043?

CVE-2022-50043 is caused by a potential reference count leak in the ndisc_router_discovery function.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203