CVE-2022-50077 Details
Description
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.
A reference count leak vulnerability has been identified in the Linux kernel's AppArmor subsystem, specifically within the aa_pivotroot() function. The issue arises when aa_replace_current_label() successfully returns, as the function fails to decrement the reference count of the 'target' variable. This oversight occurs because the reference count is initially increased by build_pivotroot(), leading to a memory leak. The vulnerability has been addressed by ensuring that the reference count of 'target' is properly decreased in the relevant execution path.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a | kernel.org | Patch |
| https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c | kernel.org | Patch |
| https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.14.1, < 4.14.291 >= 4.15, < 4.19.256 >= 4.20, < 5.4.211 >= 5.5, < 5.10.138 >= 5.11, < 5.15.63 >= 5.16, < 5.19.4 4.14 - 4.14 rc2 4.14 rc3 4.14 rc4 4.14 rc5 4.14 rc6 4.14 rc7 4.14 rc8 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 17, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |