Bug 2373691 (CVE-2022-50042) - CVE-2022-50042 kernel: net: genl: fix error path memory leak in policy dumping
Summary: CVE-2022-50042 kernel: net: genl: fix error path memory leak in policy dumping
Keywords:
Status: NEW
Alias: CVE-2022-50042
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:13 UTC by OSIDB Bzimport
Modified: 2025-08-01 13:06 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:13:59 UTC
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.

Comment 1 Avinash Hanwate 2025-06-18 16:26:19 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061843-CVE-2022-50042-7d6f@gregkh/T


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