{"id":"CVE-2022-50860","aliases":["CVE-2022-50860"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: Fix memleak in alloc_ns()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: Fix memleak in alloc_ns()\n\nAfter changes in commit a1bd627b46d1 (\"apparmor: share profile name on\nreplacement\"), the hname member of struct aa_policy is not valid slab\nobject, but a subset of that, it can not be freed by kfree_sensitive(),\nuse aa_policy_destroy() to fix it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: Fix memleak in alloc_ns()\n\nAfter changes in commit a1bd627b46d1 (\"apparmor: share profile name on\nreplacement\"), the hname member of struct aa_policy is not valid slab\nobject, but a subset of that, it can not be freed by kfree_sensitive(),\nuse aa_policy_destroy() to fix it.","source":"cvelist"}],"published":"2025-12-30T12:15:33.859Z","modified":"2026-08-05T08:59:49.893Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a1bd627b46d169268a0ee5960899fb5be960a317","fixed":"9a32aa87a25d800b2c6f47bc2749a7bfd9a486f3","status":"affected"},{"type":"git","introduced":"a1bd627b46d169268a0ee5960899fb5be960a317","fixed":"5f509fa740b17307f0cba412485072f632d5af36","status":"affected"},{"type":"git","introduced":"a1bd627b46d169268a0ee5960899fb5be960a317","fixed":"0250cf8d37bb5201a117177afd24dc73a1c81657","status":"affected"},{"type":"git","introduced":"a1bd627b46d169268a0ee5960899fb5be960a317","fixed":"12695b4b76d437b9c0182a6f7dfb2248013a9daf","status":"affected"},{"type":"git","introduced":"a1bd627b46d169268a0ee5960899fb5be960a317","fixed":"e9e6fa49dbab6d84c676666f3fe7d360497fd65b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9a32aa87a25d800b2c6f47bc2749a7bfd9a486f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f509fa740b17307f0cba412485072f632d5af36","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0250cf8d37bb5201a117177afd24dc73a1c81657","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/12695b4b76d437b9c0182a6f7dfb2248013a9daf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9e6fa49dbab6d84c676666f3fe7d360497fd65b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50860","url":"https://www.cve.org/CVERecord?id=CVE-2022-50860","licence":"CVE Terms of Use","modified":"2026-08-05T08:59:49.893Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50860","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50860","licence":"Public domain","modified":"2026-08-04T10:18:24.577Z"}],"updatedAt":"2026-11-25T22:58:21.383Z","epss":{"score":0.00216,"percentile":0.12715,"date":"2026-12-02T12:00:21.000Z"}}