{"id":"CVE-2022-50077","published":"2025-06-18T11:02:20Z","modified":"2026-05-11T19:12:25Z","title":"apparmor: fix reference count leak in aa_pivotroot()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00202,"percentile":0.10292,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3","tags":[]},{"url":"https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287","tags":[]},{"url":"https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4","tags":[]},{"url":"https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2","tags":[]},{"url":"https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c","tags":[]},{"url":"https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a","tags":[]},{"url":"https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.06}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < d53194707d2a1851be027cd74266b96ceff799d3",">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < f4d5c7796571624e3f380b447ada52834270a287",">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < ef6fb6f0d0d8440595b45a7e53c6162c737177f4",">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < 2ceeb3296e9dde1d5772348046affcefdea605e2",">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < 64103ea357734b82384c925cba4758fdb909be0c",">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < 3ca40ad7afae144169a43988ef1a3f16182faf0a",">= 2ea3ffb7782a84da33a8382f13ebd016da50079b, < 11c3627ec6b56c1525013f336f41b79a983b4d46"]},{"vendor":"Linux","product":"Linux","versions":["4.14"]}],"euvd":{"id":"EUVD-2022-55346","exploited":false,"provenance":"source"}}