{"id":"CVE-2022-50042","aliases":["CVE-2022-50042"],"related":[],"kind":"vulnerability","state":"published","title":"net: genl: fix error path memory leak in policy dumping","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: genl: fix error path memory leak in policy dumping\n\nIf construction of the array of policies fails when recording\nnon-first policy we need to unwind.\n\nnetlink_policy_dump_add_policy() itself also needs fixing as\nit currently gives up on error without recording the allocated\npointer in the pstate pointer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: genl: fix error path memory leak in policy dumping\n\nIf construction of the array of policies fails when recording\nnon-first policy we need to unwind.\n\nnetlink_policy_dump_add_policy() itself also needs fixing as\nit currently gives up on error without recording the allocated\npointer in the pstate pointer.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-06-18T11:01:43.264Z","modified":"2026-11-05T20:17:21.253Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"50a896cf2d6f34e884a00139d6e6012c9833ace3","fixed":"83411c9f05d5a8b637293b3389eca3d378197c04","status":"affected"},{"type":"git","introduced":"50a896cf2d6f34e884a00139d6e6012c9833ace3","fixed":"b0672895d8be5d19d4b05ac83f807026fc791037","status":"affected"},{"type":"git","introduced":"50a896cf2d6f34e884a00139d6e6012c9833ace3","fixed":"26b6acd365823e99e46be3b27500f5dc235dda5e","status":"affected"},{"type":"git","introduced":"50a896cf2d6f34e884a00139d6e6012c9833ace3","fixed":"249801360db3dec4f73768c502192020bfddeacc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.138","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.63","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.4","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"5.10.138"},{"status":"affected","introduced":"5.11","fixed":"5.15.63"},{"status":"affected","introduced":"5.16","fixed":"5.19.4"},{"status":"affected","version":"6.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T19:53:16.705Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50042","url":"https://www.cve.org/CVERecord?id=CVE-2022-50042","licence":"CVE Terms of Use","modified":"2026-11-05T20:00:14.460Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50042","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50042","licence":"Public domain","modified":"2026-11-05T20:17:21.253Z"}],"updatedAt":"2026-11-25T22:58:21.025Z","epss":{"score":0.00266,"percentile":0.19828,"date":"2026-12-01T12:00:22.000Z"}}