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

Status: published. Published: 2025-06-18. Updated: 2026-11-05.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 50a896cf2d6f34e884a00139d6e6012c9833ace3; < 83411c9f05d5a8b637293b3389eca3d378197c04 (affected, git); ≥ 50a896cf2d6f34e884a00139d6e6012c9833ace3; < b0672895d8be5d19d4b05ac83f807026fc791037 (affected, git); ≥ 50a896cf2d6f34e884a00139d6e6012c9833ace3; < 26b6acd365823e99e46be3b27500f5dc235dda5e (affected, git); ≥ 50a896cf2d6f34e884a00139d6e6012c9833ace3; < 249801360db3dec4f73768c502192020bfddeacc (affected, git). Source: CNA: Linux
- Linux / Linux: 5.10 (affected); ≥ 0; < 5.10 (unaffected, semver); ≥ 5.10.138; ≤ 5.10.* (unaffected, semver); ≥ 5.15.63; ≤ 5.15.* (unaffected, semver); ≥ 5.19.4; ≤ 5.19.* (unaffected, semver); ≥ 6.0; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.25% as of 2026-11-05; percentile 17.11%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04 (CNA: Linux)

- https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037 (CNA: Linux)

- https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e (CNA: Linux)

- https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc (CNA: Linux)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2022-50042; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-50042; retrieved 2026-11-05; source updated Not reported

Revision: 600baa72cd5d8481c478964a932c0e2096d07a0fd16bf231fc27c5fd5865cd3f

Canonical: https://y2.dev/cve/CVE-2022-50042

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.