CVE-2022-50077
apparmor: fix reference count leak in aa_pivotroot()
Check your servers for CVE-2022-50077
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50077 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before d53194707d2a1851be027cd74266b96ceff799d3 affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before f4d5c7796571624e3f380b447ada52834270a287 affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before ef6fb6f0d0d8440595b45a7e53c6162c737177f4 affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before 2ceeb3296e9dde1d5772348046affcefdea605e2 affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before 64103ea357734b82384c925cba4758fdb909be0c affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before 3ca40ad7afae144169a43988ef1a3f16182faf0a affected from 2ea3ffb7782a84da33a8382f13ebd016da50079b, before 11c3627ec6b56c1525013f336f41b79a983b4d46
Other versions: unaffected
|
| Linux |
affected 4.14 unaffected before 4.14 unaffected from 4.14.291 up to and including 4.14.* unaffected from 4.19.256 up to and including 4.19.* unaffected from 5.4.211 up to and including 5.4.* unaffected from 5.10.138 up to and including 5.10.* unaffected from 5.15.63 up to and including 5.15.* unaffected from 5.19.4 up to and including 5.19.* unaffected 6.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50077 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50077
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50077
trivy image --scanners vuln IMAGE | grep CVE-2022-50077
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3 git.kernel.org
- https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287 git.kernel.org
- https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4 git.kernel.org
- https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2 git.kernel.org
- https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c git.kernel.org
- https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a git.kernel.org
- https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46 git.kernel.org
Source: the record CVE-2022-50077 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse