CVE Database›Document archive›CVE-2022-50043

CVE-2022-50043

kernel: net: fix potential refcount leak in ndisc_router_discovery()

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · June 18, 2025

Updated · June 30, 2026

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.

Statement

A reference count leak was found in the ndisc_router_discovery() function when re-acquiring the neigh object without releasing the previously held reference. This may lead to a memory leak, especially in long-lived or high-load systems. Although the issue does not impact confidentiality or integrity, it may result in memory exhaustion or kernel instability under certain conditions. The attack requires local privileges and direct interaction with the IPv6 stack, but no user interaction.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE not specified