What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.138, 5.15.63, 5.19.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50042 or the next vulnerability affects your stack