net: genl: fix error path memory leak in policy dumping
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel can leak memory when construction of a policy array fails while recording a non-first policy during generic netlink policy dumping. The input does not establish how an attacker could trigger the failure or whether authentication or user interaction is required.
Operators running the Linux kernel should check their versions; affected versions are not specified.