5.5medium
net: genl: fix error path memory leak in policy dumping
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.27% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 50a896cf2d6f34e884a00139d6e6012c9833ace3 before 83411c9f05d5a8b637293b3389eca3d378197c04, from 50a896cf2d6f34e884a00139d6e6012c9833ace3 before b0672895d8be5d19d4b05ac83f807026fc791037, from 50a896cf2d6f34e884a00139d6e6012c9833ace3 before 26b6acd365823e99e46be3b27500f5dc235dda5e, from 50a896cf2d6f34e884a00139d6e6012c9833ace3 before 249801360db3dec4f73768c502192020bfddeacc, 5.10 Not affected: before 5.10, from 5.10.138 up to 5.10.*, from 5.15.63 up to 5.15.*, from 5.19.4 up to 5.19.*, from 6.0 up to * | CVE List |
| linux linux_kernel | from 5.10 before 5.10.138, from 5.11 before 5.15.63, from 5.16 before 5.19.4, 6.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: genl: corrige error de pérdida de memoria de ruta en el volcado de políticas Si la construcción de la matriz de políticas falla cuando se registra una política que no es la primera, debemos desenrollar. netlink_policy_dump_add_policy() en sí también necesita reparación, ya que actualmente se da por vencido en caso de error sin registrar el puntero asignado en el puntero pstate.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50042 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2022-50042 changed 2026-11-05 | Public domain |