CVE-2022-50887
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
Check your servers for CVE-2022-50887
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-50887 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:
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
I got the the following report:
OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /i2c/pmic@62/regulators/exten
In of_get_regulator(), the node is returned from of_parse_phandle() with refcount incremented, after using it, of_node_put() need be called.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before 0e88505ac0a6ae97746bcdbd4b042ee9f20455ae affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before 4dfcf5087db9a34a300d6b99009232d4537c3e6a affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before 3ac888db0f67813d91373a9a61c840f815cd4ec9 affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before d39937f8de641c44a337cec4a2e5d3e8add20a7d affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before f48c474efe05cf9ce5e535b5e0ddd710e963936c affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before cda1895f3b7f324ece1614308a815a3994983b97 affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before 2b93c58adddd98812ad928bbc2063038f3df1ffd affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before 2f98469c3141f8e42ba11075a273fb795bbad57f affected from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3, before f2b41b748c19962b82709d9f23c6b2b0ce9d2f91
Other versions: unaffected
|
| Linux |
affected 3.3 unaffected before 3.3 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 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-50887 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50887
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-50887
trivy image --scanners vuln IMAGE | grep CVE-2022-50887
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/0e88505ac0a6ae97746bcdbd4b042ee9f20455ae git.kernel.org
- https://git.kernel.org/stable/c/4dfcf5087db9a34a300d6b99009232d4537c3e6a git.kernel.org
- https://git.kernel.org/stable/c/3ac888db0f67813d91373a9a61c840f815cd4ec9 git.kernel.org
- https://git.kernel.org/stable/c/d39937f8de641c44a337cec4a2e5d3e8add20a7d git.kernel.org
- https://git.kernel.org/stable/c/f48c474efe05cf9ce5e535b5e0ddd710e963936c git.kernel.org
- https://git.kernel.org/stable/c/cda1895f3b7f324ece1614308a815a3994983b97 git.kernel.org
- https://git.kernel.org/stable/c/2b93c58adddd98812ad928bbc2063038f3df1ffd git.kernel.org
- https://git.kernel.org/stable/c/2f98469c3141f8e42ba11075a273fb795bbad57f git.kernel.org
- https://git.kernel.org/stable/c/f2b41b748c19962b82709d9f23c6b2b0ce9d2f91 git.kernel.org
Source: the record CVE-2022-50887 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