CVE-2022-50077

published 18 Jun 2025 · updated 11 May 2026

apparmor: fix reference count leak in aa_pivotroot()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 11c3627ec6b56c1525013f336f41b79a983b4d46, Kernel 2ceeb3296e9dde1d5772348046affcefdea605e2, Kernel 3ca40ad7afae144169a43988ef1a3f16182faf0a and 4 more.

In the Linux kernel, the following vulnerability has been resolved: apparmor: fix reference count leak in aa_pivotroot() The aa_pivotroot() function has a reference counting bug in a specific path. When aa_replace_current_label() returns on success, the function forgets to decrement the reference count of “target”, which is increased earlier by build_pivotroot(), causing a reference leak. Fix it by decreasing the refcount of “target” in that path.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.14, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <11c3627ec6b56c1525013f336f41b79a983b4d46, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <2ceeb3296e9dde1d5772348046affcefdea605e2, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <3ca40ad7afae144169a43988ef1a3f16182faf0a, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <64103ea357734b82384c925cba4758fdb909be0c, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <d53194707d2a1851be027cd74266b96ceff799d3, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <ef6fb6f0d0d8440595b45a7e53c6162c737177f4, >=2ea3ffb7782a84da33a8382f13ebd016da50079b <f4d5c7796571624e3f380b447ada52834270a28711c3627ec6b56c1525013f336f41b79a983b4d46, 2ceeb3296e9dde1d5772348046affcefdea605e2, 3ca40ad7afae144169a43988ef1a3f16182faf0a, 64103ea357734b82384c925cba4758fdb909be0c, d53194707d2a1851be027cd74266b96ceff799d3, ef6fb6f0d0d8440595b45a7e53c6162c737177f4, f4d5c7796571624e3f380b447ada52834270a287

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50077 severity on Zeptric[![CVE-2022-50077](https://zeptric.io/badge/cve/CVE-2022-50077.svg)](https://zeptric.io/cve/CVE-2022-50077)