CVE-2022-50201
selinux: fix memleak in security_read_state_kernel()
Check your servers for CVE-2022-50201
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-50201 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:
selinux: fix memleak in security_read_state_kernel()
In this function, it directly returns the result of __security_read_policy without freeing the allocated memory in *data, cause memory leak issue, so free the memory if __security_read_policy failed.
[PM: subject line tweak]
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fdd1ffe8a812b1109388e4bc389e57b2695ad095, before c877c5217145bda8fd95f506bf42f8d981afa57d affected from fdd1ffe8a812b1109388e4bc389e57b2695ad095, before f3cd7562c0a6774fc62d79654482014020e574f5 affected from fdd1ffe8a812b1109388e4bc389e57b2695ad095, before 1fc1f72aad2070d34022d0823e4cf09706b53f25 affected from fdd1ffe8a812b1109388e4bc389e57b2695ad095, before 73de1befcc53a7c68b0c5e76b9b5ac41c517760f
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.15.61 up to and including 5.15.* unaffected from 5.18.18 up to and including 5.18.* unaffected from 5.19.2 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-50201 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50201
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-50201
trivy image --scanners vuln IMAGE | grep CVE-2022-50201
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/c877c5217145bda8fd95f506bf42f8d981afa57d git.kernel.org
- https://git.kernel.org/stable/c/f3cd7562c0a6774fc62d79654482014020e574f5 git.kernel.org
- https://git.kernel.org/stable/c/1fc1f72aad2070d34022d0823e4cf09706b53f25 git.kernel.org
- https://git.kernel.org/stable/c/73de1befcc53a7c68b0c5e76b9b5ac41c517760f git.kernel.org
Source: the record CVE-2022-50201 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse