CVE-2022-50870
powerpc/rtas: avoid device tree lookups in rtas_os_term()
Check your servers for CVE-2022-50870
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-50870 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:
powerpc/rtas: avoid device tree lookups in rtas_os_term()
rtas_os_term() is called during panic. Its behavior depends on a couple of conditions in the /rtas node of the device tree, the traversal of which entails locking and local IRQ state changes. If the kernel panics while devtree_lock is held, rtas_os_term() as currently written could hang.
Instead of discovering the relevant characteristics at panic time, cache them in file-static variables at boot. Note the lookup for "ibm,extended-os-term" is converted to of_property_read_bool() since it is a boolean property, not an RTAS function token.
[mpe: Incorporate suggested change from Nick]
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.1% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 088186ded490ced80758200cf8f906ed741df306, before e23822c7381c59d9e42e65771b6e17c71ed30ea7 affected from 088186ded490ced80758200cf8f906ed741df306, before 06a07fbb32b3a23eec20a42b1e64474da0a3b33e affected from 088186ded490ced80758200cf8f906ed741df306, before c2fa91abf22a705cf02f886cd99cff41f4ceda60 affected from 088186ded490ced80758200cf8f906ed741df306, before f2167f10fcca68ab9ae3f8d94d2c704c5541ac69 affected from 088186ded490ced80758200cf8f906ed741df306, before d8939315b7342860df143afe0adda6212cdd3193 affected from 088186ded490ced80758200cf8f906ed741df306, before 698e682c849e356fb47a8be47ca8baa817cf31e0 affected from 088186ded490ced80758200cf8f906ed741df306, before 464d10e8d797454e16a173ef1292a446b2adf21c affected from 088186ded490ced80758200cf8f906ed741df306, before ed2213bfb192ab51f09f12e9b49b5d482c6493f3
Other versions: unaffected
|
| Linux |
affected 2.6.16 unaffected before 2.6.16 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.87 up to and including 5.15.* unaffected from 6.0.17 up to and including 6.0.* unaffected from 6.1.3 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-50870 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50870
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-50870
trivy image --scanners vuln IMAGE | grep CVE-2022-50870
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/e23822c7381c59d9e42e65771b6e17c71ed30ea7 git.kernel.org
- https://git.kernel.org/stable/c/06a07fbb32b3a23eec20a42b1e64474da0a3b33e git.kernel.org
- https://git.kernel.org/stable/c/c2fa91abf22a705cf02f886cd99cff41f4ceda60 git.kernel.org
- https://git.kernel.org/stable/c/f2167f10fcca68ab9ae3f8d94d2c704c5541ac69 git.kernel.org
- https://git.kernel.org/stable/c/d8939315b7342860df143afe0adda6212cdd3193 git.kernel.org
- https://git.kernel.org/stable/c/698e682c849e356fb47a8be47ca8baa817cf31e0 git.kernel.org
- https://git.kernel.org/stable/c/464d10e8d797454e16a173ef1292a446b2adf21c git.kernel.org
- https://git.kernel.org/stable/c/ed2213bfb192ab51f09f12e9b49b5d482c6493f3 git.kernel.org
Source: the record CVE-2022-50870 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