CVE-2022-50077

apparmor: fix reference count leak in aa_pivotroot()

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:02 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.14 ≤ v < 4.14.2914.14 ≤ v < 4.19.2564.14 ≤ v < 5.10.1384.14 ≤ v < 5.15.634.14 ≤ v < 5.19.44.14 ≤ v < 5.4.2114.14 ≤ v < 6.04.14.1 ≤ v < 4.14.2914.15 ≤ v < 4.19.2564.20 ≤ v < 5.4.2115.11 ≤ v < 5.15.635.16 ≤ v < 5.19.45.5 ≤ v < 5.10.1382ea3ffb7782a84da33a8382f13ebd016da50079b4.144.14 rc24.14 rc34.14 rc44.14 rc54.14 rc64.14 rc74.14 rc8
Vendor states this is fixed in 11c3627ec6b56c1525013f336f41b79a983b4d46 (fixed)
Vendor states this is fixed in 2ceeb3296e9dde1d5772348046affcefdea605e2 (fixed)
Vendor states this is fixed in 3ca40ad7afae144169a43988ef1a3f16182faf0a (fixed)
Vendor states this is fixed in 64103ea357734b82384c925cba4758fdb909be0c (fixed)
Vendor states this is fixed in d53194707d2a1851be027cd74266b96ceff799d3 (fixed)
Vendor states this is fixed in ef6fb6f0d0d8440595b45a7e53c6162c737177f4 (fixed)
Vendor states this is fixed in f4d5c7796571624e3f380b447ada52834270a287 (fixed)
Vendor states this is fixed in 4.14 (unaffected)
Vendor states this is fixed in 4.14.291 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 5.10.138 (unaffected)
Vendor states this is fixed in 5.15.63 (unaffected)
Vendor states this is fixed in 5.19.4 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card