CVE-2022-50158

mtd: partitions: Fix refcount leak in parse_redboot_of

No CVSS score yet EPSS 0.20%

Published 18 Jun 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2022-50158

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-50158 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: partitions: Fix refcount leak in parse_redboot_of

of_get_child_by_name() 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 6490ed7c4684caf9851a0b98e0ab17a8d693dada, before f3cc27198c5d78cdda60a55ae749f815cd1fe5eb
affected from 2f8824f556a3ebea9840c53326e55cc183316611, before 55d0f7da66dec93c4d53d0886a1555618079a900
affected from 237960880960863fb41888763d635b384cffb104, before 8ea607579d300b2f7fc997f3dd20949114565fcd
affected from 237960880960863fb41888763d635b384cffb104, before 7ec48ac18d8f9e002ce9bfbad32741086739e499
affected from 237960880960863fb41888763d635b384cffb104, before e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e
affected from 237960880960863fb41888763d635b384cffb104, before 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016
affected fa132c7ea108eacc67357ffe3172d3e68fcd71a2
affected d5023eb76f0dc651558b0c7ba04565891ff18435
affected from 5.4.132, before 5.4.211
affected from 5.10.50, before 5.10.137
affected from 5.12.17, before 5.13
affected from 5.13.2, before 5.14
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
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-50158 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50158

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

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