CVE-2022-50754
apparmor: fix a memleak in multi_transaction_new()
Check your servers for CVE-2022-50754
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-50754 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 a memleak in multi_transaction_new()
In multi_transaction_new(), the variable t is not freed or passed out on the failure of copy_from_user(t->data, buf, size), which could lead to a memleak.
Fix this bug by adding a put_multi_transaction(t) in the error path.
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before 11d5fe7da67c3334cefc981297fd5defb78df15c affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before 95e6adc6a7a4761ddf69ad713e55a06a3206309d affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before eb0f78e28cbc8f97439c0a4c80ee5160c1df5ce6 affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before 935d86b29093e75b6c547d90b3979c2c2d23f1c4 affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before 775a37ffa9f4681c4ad84c8634a7eec8af7098d4 affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before 88989932c2269ea66074f52a6213598838f8b9e7 affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before 3d27a436e294ac5d7a51bd5348ca63a42a468b35 affected from 1dea3b41e84c5923173fe654dcb758a5cb4a46e5, before c73275cf6834787ca090317f1d20dbfa3b7f05aa
Other versions: unaffected
|
| Linux |
affected 4.13 unaffected before 4.13 unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 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-50754 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50754
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-50754
trivy image --scanners vuln IMAGE | grep CVE-2022-50754
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/11d5fe7da67c3334cefc981297fd5defb78df15c git.kernel.org
- https://git.kernel.org/stable/c/95e6adc6a7a4761ddf69ad713e55a06a3206309d git.kernel.org
- https://git.kernel.org/stable/c/eb0f78e28cbc8f97439c0a4c80ee5160c1df5ce6 git.kernel.org
- https://git.kernel.org/stable/c/935d86b29093e75b6c547d90b3979c2c2d23f1c4 git.kernel.org
- https://git.kernel.org/stable/c/775a37ffa9f4681c4ad84c8634a7eec8af7098d4 git.kernel.org
- https://git.kernel.org/stable/c/88989932c2269ea66074f52a6213598838f8b9e7 git.kernel.org
- https://git.kernel.org/stable/c/3d27a436e294ac5d7a51bd5348ca63a42a468b35 git.kernel.org
- https://git.kernel.org/stable/c/c73275cf6834787ca090317f1d20dbfa3b7f05aa git.kernel.org
Source: the record CVE-2022-50754 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