Bug 2373506 (CVE-2022-50043) - CVE-2022-50043 kernel: net: fix potential refcount leak in ndisc_router_discovery()
Summary: CVE-2022-50043 kernel: net: fix potential refcount leak in ndisc_router_disco...
Keywords:
Status: NEW
Alias: CVE-2022-50043
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:05 UTC by OSIDB Bzimport
Modified: 2025-06-19 20:59 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:05:59 UTC
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.

Comment 1 Avinash Hanwate 2025-06-19 20:49:41 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061843-CVE-2022-50043-e7dc@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.