CVE-2022-50043

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50043
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50043.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50043
Downstream
Published
2025-06-18T11:15:32Z
Modified
2025-06-18T16:01:34Z
Summary
[none]
Details

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.

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}