{"id":"CVE-2022-50870","summary":"powerpc/rtas: avoid device tree lookups in rtas_os_term()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/rtas: avoid device tree lookups in rtas_os_term()\n\nrtas_os_term() is called during panic. Its behavior depends on a couple\nof conditions in the /rtas node of the device tree, the traversal of\nwhich entails locking and local IRQ state changes. If the kernel panics\nwhile devtree_lock is held, rtas_os_term() as currently written could\nhang.\n\nInstead of discovering the relevant characteristics at panic time,\ncache them in file-static variables at boot. Note the lookup for\n\"ibm,extended-os-term\" is converted to of_property_read_bool() since it\nis a boolean property, not an RTAS function token.\n\n[mpe: Incorporate suggested change from Nick]","modified":"2026-04-02T08:28:48.731948Z","published":"2025-12-30T12:15:40.718Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0316-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0350-1","SUSE-SU-2026:0369-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50870.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/06a07fbb32b3a23eec20a42b1e64474da0a3b33e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/464d10e8d797454e16a173ef1292a446b2adf21c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/698e682c849e356fb47a8be47ca8baa817cf31e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2fa91abf22a705cf02f886cd99cff41f4ceda60"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8939315b7342860df143afe0adda6212cdd3193"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e23822c7381c59d9e42e65771b6e17c71ed30ea7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed2213bfb192ab51f09f12e9b49b5d482c6493f3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2167f10fcca68ab9ae3f8d94d2c704c5541ac69"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50870.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50870"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"088186ded490ced80758200cf8f906ed741df306"},{"fixed":"e23822c7381c59d9e42e65771b6e17c71ed30ea7"},{"fixed":"06a07fbb32b3a23eec20a42b1e64474da0a3b33e"},{"fixed":"c2fa91abf22a705cf02f886cd99cff41f4ceda60"},{"fixed":"f2167f10fcca68ab9ae3f8d94d2c704c5541ac69"},{"fixed":"d8939315b7342860df143afe0adda6212cdd3193"},{"fixed":"698e682c849e356fb47a8be47ca8baa817cf31e0"},{"fixed":"464d10e8d797454e16a173ef1292a446b2adf21c"},{"fixed":"ed2213bfb192ab51f09f12e9b49b5d482c6493f3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50870.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.16"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.87"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50870.json"}}],"schema_version":"1.7.5"}