CVE-2022-50160
mtd: maps: Fix refcount leak in ap_flash_init
Check your servers for CVE-2022-50160
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-50160 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:
mtd: maps: Fix refcount leak in ap_flash_init
of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
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 b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 995fb2874bb5696357846a91e59181c600e6aac8 affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before d10855876a6f47add6ff621cef25cc0171dac162 affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 941ef6997f9db704fe4fd62fc01e420fdd5048b2 affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before d5730780e9ea84e5476752a47c749036c6a74af5 affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before a74322d4b897ddc268b340c4a397f6066c2f945d affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before babd7b0124650ab71a6487e38588b8659b3aa2dc affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 77087a04c8fd554134bddcb8a9ff87b21f357926
Other versions: unaffected
|
| Linux |
affected 4.7 unaffected before 4.7 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.137 up to and including 5.10.* 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-50160 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50160
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-50160
trivy image --scanners vuln IMAGE | grep CVE-2022-50160
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/995fb2874bb5696357846a91e59181c600e6aac8 git.kernel.org
- https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162 git.kernel.org
- https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f git.kernel.org
- https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2 git.kernel.org
- https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5 git.kernel.org
- https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d git.kernel.org
- https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc git.kernel.org
- https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926 git.kernel.org
Source: the record CVE-2022-50160 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