CVE-2022-50512
ext4: fix potential memory leak in ext4_fc_record_regions()
Check your servers for CVE-2022-50512
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-50512 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:
ext4: fix potential memory leak in ext4_fc_record_regions()
As krealloc may return NULL, in this case 'state->fc_regions' may not be freed by krealloc, but 'state->fc_regions' already set NULL. Then will lead to 'state->fc_regions' memory leak.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.31% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, before 2cfb769d60a2a57eb3566765428b6131cd16dcfe affected from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, before 417b0455a0b6d0f60a2930592731d1f8340e24be affected from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, before a4058b869e6c5e517c79e30532a350d0f3115c3e affected from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, before 518566e71ad86b7c2f1bf6d9caee9588bb7ac158 affected from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2, before 7069d105c1f15c442b68af43f7fde784f3126739
Other versions: unaffected
|
| Linux |
affected 5.10 unaffected before 5.10 unaffected from 5.10.150 up to and including 5.10.* unaffected from 5.15.75 up to and including 5.15.* unaffected from 5.19.17 up to and including 5.19.* unaffected from 6.0.3 up to and including 6.0.* unaffected 6.1 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-50512 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50512
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-50512
trivy image --scanners vuln IMAGE | grep CVE-2022-50512
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/2cfb769d60a2a57eb3566765428b6131cd16dcfe git.kernel.org
- https://git.kernel.org/stable/c/417b0455a0b6d0f60a2930592731d1f8340e24be git.kernel.org
- https://git.kernel.org/stable/c/a4058b869e6c5e517c79e30532a350d0f3115c3e git.kernel.org
- https://git.kernel.org/stable/c/518566e71ad86b7c2f1bf6d9caee9588bb7ac158 git.kernel.org
- https://git.kernel.org/stable/c/7069d105c1f15c442b68af43f7fde784f3126739 git.kernel.org
Source: the record CVE-2022-50512 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