{"id":"CVE-2022-50870","aliases":["CVE-2022-50870"],"related":[],"kind":"vulnerability","state":"published","title":"powerpc/rtas: avoid device tree lookups in rtas_os_term()","summary":"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]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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]","source":"cvelist"}],"published":"2025-12-30T12:15:40.718Z","modified":"2026-06-17T05:24:19.637Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"e23822c7381c59d9e42e65771b6e17c71ed30ea7","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"06a07fbb32b3a23eec20a42b1e64474da0a3b33e","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"c2fa91abf22a705cf02f886cd99cff41f4ceda60","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"f2167f10fcca68ab9ae3f8d94d2c704c5541ac69","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"d8939315b7342860df143afe0adda6212cdd3193","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"698e682c849e356fb47a8be47ca8baa817cf31e0","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"464d10e8d797454e16a173ef1292a446b2adf21c","status":"affected"},{"type":"git","introduced":"088186ded490ced80758200cf8f906ed741df306","fixed":"ed2213bfb192ab51f09f12e9b49b5d482c6493f3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.87","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.17","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.3","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e23822c7381c59d9e42e65771b6e17c71ed30ea7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06a07fbb32b3a23eec20a42b1e64474da0a3b33e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2fa91abf22a705cf02f886cd99cff41f4ceda60","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2167f10fcca68ab9ae3f8d94d2c704c5541ac69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8939315b7342860df143afe0adda6212cdd3193","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/698e682c849e356fb47a8be47ca8baa817cf31e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/464d10e8d797454e16a173ef1292a446b2adf21c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed2213bfb192ab51f09f12e9b49b5d482c6493f3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50870","url":"https://www.cve.org/CVERecord?id=CVE-2022-50870","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:43.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50870","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50870","licence":"Public domain","modified":"2026-06-17T05:24:19.637Z"}],"updatedAt":"2026-11-25T22:58:21.386Z","epss":{"score":0.00226,"percentile":0.14125,"date":"2026-12-02T12:00:21.000Z"}}