CVE-2022-50074
apparmor: Fix memleak in aa_simple_write_to_buffer()
Check your servers for CVE-2022-50074
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-50074 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 memleak in aa_simple_write_to_buffer()
When copy_from_user failed, the memory is freed by kvfree. however the management struct and data blob are allocated independently, so only kvfree(data) cause a memleak issue here. Use aa_put_loaddata(data) to fix this issue.
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 a6a52579e52b55448326db88bd9a5740e7c1a037, before 6500eb3a48ac221051b1791818a1ac74744ef617 affected from a6a52579e52b55448326db88bd9a5740e7c1a037, before 7db182a2ebeefded86fea542fcc5d6a68bb77f58 affected from a6a52579e52b55448326db88bd9a5740e7c1a037, before 8aab4295582eb397a125d2788b829fa62b88dbf7 affected from a6a52579e52b55448326db88bd9a5740e7c1a037, before bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 affected from a6a52579e52b55448326db88bd9a5740e7c1a037, before 6583edbf459de2e06b9759f264c0ae27e452b97a affected from a6a52579e52b55448326db88bd9a5740e7c1a037, before 417ea9fe972d2654a268ad66e89c8fcae67017c3
Other versions: unaffected
|
| Linux |
affected 4.17 unaffected before 4.17 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-50074 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50074
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-50074
trivy image --scanners vuln IMAGE | grep CVE-2022-50074
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/6500eb3a48ac221051b1791818a1ac74744ef617 git.kernel.org
- https://git.kernel.org/stable/c/7db182a2ebeefded86fea542fcc5d6a68bb77f58 git.kernel.org
- https://git.kernel.org/stable/c/8aab4295582eb397a125d2788b829fa62b88dbf7 git.kernel.org
- https://git.kernel.org/stable/c/bf7ebebce2c25071c719fd8a2f1307e0c243c2d7 git.kernel.org
- https://git.kernel.org/stable/c/6583edbf459de2e06b9759f264c0ae27e452b97a git.kernel.org
- https://git.kernel.org/stable/c/417ea9fe972d2654a268ad66e89c8fcae67017c3 git.kernel.org
Source: the record CVE-2022-50074 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