CVE-2022-50077

apparmor: fix reference count leak in aa_pivotroot()

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before d53194707d2a1851be027cd74266b96ceff799d3Affected
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before f4d5c7796571624e3f380b447ada52834270a287Affected
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before ef6fb6f0d0d8440595b45a7e53c6162c737177f4Affected
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before 2ceeb3296e9dde1d5772348046affcefdea605e2Affected
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before 64103ea357734b82384c925cba4758fdb909be0cAffected
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before 3ca40ad7afae144169a43988ef1a3f16182faf0aAffected
  • 2ea3ffb7782a84da33a8382f13ebd016da50079b to before 11c3627ec6b56c1525013f336f41b79a983b4d46Affected
LinuxLinux
  • 4.14Affected
  • before 4.14Not affected
  • 4.14.291 through 4.14.*Not affected
  • 4.19.256 through 4.19.*Not affected
  • 5.4.211 through 5.4.*Not affected
  • 5.10.138 through 5.10.*Not affected
  • 5.15.63 through 5.15.*Not affected
  • 5.19.4 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.