CVE-2022-50077
JSON

5.5medium

apparmor: fix reference count leak in aa_pivotroot()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 2ea3ffb7782a84da33a8382f13ebd016da50079b before d53194707d2a1851be027cd74266b96ceff799d3, from 2ea3ffb7782a84da33a8382f13ebd016da50079b before f4d5c7796571624e3f380b447ada52834270a287, from 2ea3ffb7782a84da33a8382f13ebd016da50079b before ef6fb6f0d0d8440595b45a7e53c6162c737177f4, from 2ea3ffb7782a84da33a8382f13ebd016da50079b before 2ceeb3296e9dde1d5772348046affcefdea605e2, from 2ea3ffb7782a84da33a8382f13ebd016da50079b before 64103ea357734b82384c925cba4758fdb909be0c, from 2ea3ffb7782a84da33a8382f13ebd016da50079b before 3ca40ad7afae144169a43988ef1a3f16182faf0a, from 2ea3ffb7782a84da33a8382f13ebd016da50079b before 11c3627ec6b56c1525013f336f41b79a983b4d46, 4.14
Not affected: before 4.14, from 4.14.291 up to 4.14.*, from 4.19.256 up to 4.19.*, from 5.4.211 up to 5.4.*, from 5.10.138 up to 5.10.*, from 5.15.63 up to 5.15.*
CVE List
linux linux_kernelfrom 4.14.1 before 4.14.291, from 4.15 before 4.19.256, from 4.20 before 5.4.211, from 5.5 before 5.10.138, from 5.11 before 5.15.63, from 5.16 before 5.19.4, 4.14NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: apparmor: se corrige una fuga de referencias en aa_pivotroot(). La función aa_pivotroot() presenta un error de conteo de referencias en una ruta específica. Cuando aa_replace_current_label() retorna con éxito, la función olvida decrementar el conteo de referencias de "target", que se incrementa previamente mediante build_pivotroot(), lo que provoca una fuga de referencias. Para solucionarlo, reduzca el conteo de referencias de "target" en esa ruta.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50077 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50077 changed 2026-06-17Public domain