CVE-2022-50161

mtd: maps: Fix refcount leak in of_flash_probe_versatile

No CVSS score yet EPSS 0.20%

Published 18 Jun 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50161

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-50161 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

mtd: maps: Fix refcount leak in of_flash_probe_versatile

of_find_matching_node_and_match() 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.

ProductVersions
Linux
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 3c8de6a838b7e0eb392754ac89dd66e698684342
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 79e57889aa0d92a6d769bad808fb105e7b6ea495
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 9124d51e01232a91da4034768a2a8d1688472179
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 52ae2b14f76ef2d490337ddc0037bc37125be7b8
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 4d67c8f74d804b20febf716ec96e9a475457ec60
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before f516fbb63873ee23cba5b7c3d239677c30f13df8
affected from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33, before 33ec82a6d2b119938f26e5c8040ed5d92378eb54
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-50161 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50161

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-50161
trivy image --scanners vuln IMAGE | grep CVE-2022-50161

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

Source: the record CVE-2022-50161 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.