CVE-2022-50042

net: genl: fix error path memory leak in policy dumping

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:01 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

Description

In the Linux kernel, the following vulnerability has been resolved: net: genl: fix error path memory leak in policy dumping If construction of the array of policies fails when recording non-first policy we need to unwind. netlink_policy_dump_add_policy() itself also needs fixing as it currently gives up on error without recording the allocated pointer in the pstate pointer.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.10 ≤ v < 5.10.1385.10 ≤ v < 5.15.635.10 ≤ v < 5.19.45.10 ≤ v < 6.05.11 ≤ v < 5.15.635.16 ≤ v < 5.19.45.1050a896cf2d6f34e884a00139d6e6012c9833ace36.0 rc1
Vendor states this is fixed in 249801360db3dec4f73768c502192020bfddeacc (fixed)
Vendor states this is fixed in 26b6acd365823e99e46be3b27500f5dc235dda5e (fixed)
Vendor states this is fixed in 83411c9f05d5a8b637293b3389eca3d378197c04 (fixed)
Vendor states this is fixed in b0672895d8be5d19d4b05ac83f807026fc791037 (fixed)
Vendor states this is fixed in 5.10 (unaffected)
Vendor states this is fixed in 5.10.138 (unaffected)
Vendor states this is fixed in 5.15.63 (unaffected)
Vendor states this is fixed in 5.19.4 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card