{"id":"CVE-2022-50077","summary":"apparmor: fix reference count leak in aa_pivotroot()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix reference count leak in aa_pivotroot()\n\nThe aa_pivotroot() function has a reference counting bug in a specific\npath. When aa_replace_current_label() returns on success, the function\nforgets to decrement the reference count of “target”, which is\nincreased earlier by build_pivotroot(), causing a reference leak.\n\nFix it by decreasing the refcount of “target” in that path.","modified":"2026-04-03T13:14:28.563826Z","published":"2025-06-18T11:02:20.318Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50077.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50077.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50077"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2ea3ffb7782a84da33a8382f13ebd016da50079b"},{"fixed":"d53194707d2a1851be027cd74266b96ceff799d3"},{"fixed":"f4d5c7796571624e3f380b447ada52834270a287"},{"fixed":"ef6fb6f0d0d8440595b45a7e53c6162c737177f4"},{"fixed":"2ceeb3296e9dde1d5772348046affcefdea605e2"},{"fixed":"64103ea357734b82384c925cba4758fdb909be0c"},{"fixed":"3ca40ad7afae144169a43988ef1a3f16182faf0a"},{"fixed":"11c3627ec6b56c1525013f336f41b79a983b4d46"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50077.json"}}],"schema_version":"1.7.5"}