CVE-2022-50077

Source
https://cve.org/CVERecord?id=CVE-2022-50077
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50077.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50077
Downstream
Related
Published
2025-06-18T11:02:20.318Z
Modified
2026-03-12T03:26:09.526728Z
Summary
apparmor: fix reference count leak in aa_pivotroot()
Details

In the Linux kernel, the following vulnerability has been resolved:

apparmor: fix reference count leak in aa_pivotroot()

The aapivotroot() function has a reference counting bug in a specific path. When aareplacecurrentlabel() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50077.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50077.json"