{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50042","id":"CVE-2022-50042","title":"net: genl: fix error path memory leak in policy dumping","description":"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.","descriptionLong":"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.","published":"2025-06-18T11:01:43.264Z","updated":"2026-11-07T02:30:21.180828818Z","reserved":"2025-06-18T10:57:27.398Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"50a896cf2d6f34e884a00139d6e6012c9833ace3","lessThan":"83411c9f05d5a8b637293b3389eca3d378197c04","status":"affected","versionType":"git"},{"version":"50a896cf2d6f34e884a00139d6e6012c9833ace3","lessThan":"b0672895d8be5d19d4b05ac83f807026fc791037","status":"affected","versionType":"git"},{"version":"50a896cf2d6f34e884a00139d6e6012c9833ace3","lessThan":"26b6acd365823e99e46be3b27500f5dc235dda5e","status":"affected","versionType":"git"},{"version":"50a896cf2d6f34e884a00139d6e6012c9833ace3","lessThan":"249801360db3dec4f73768c502192020bfddeacc","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","lessThan":"5.10","status":"unaffected","versionType":"semver"},{"version":"5.10.138","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.63","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.4","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50042.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50042","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00265,"epssPercentile":0.18693,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50042","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50042","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50042","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50042","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}