Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 008512EBB9E for ; Tue, 30 Dec 2025 12:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097343; cv=none; b=qq4u9vMRp/A9MXKm3N5c0cH+ceIE3vYPvY/FhWfQI/KyYAAtApyyttgIMck/FlNmuTFyhWPVkMZtgv0QrGWs6k6wa8zFgLZFGIUJ8gBA67XqIXKelBnnLEVBEqsCAE38d7JMvBdvS9zevJ91Mg5jhQkAqsgPkPsXuUmveZyAOTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097343; c=relaxed/simple; bh=NTeeHPufA6c9dV+RQF6ZxS7SbDP+spUHbjMejj1+0dY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZqBxich1n7lVFEHPIuZeExltYXDt/vlG0b5EQpzTP9IX+Hn8rtl3Tj1YnsmrG7+skrE7TZUrRFluZrkHFKwJYvtVkaq4SxjakP+up6qfAtU15RX+6+kNJyxe0aerRuNQ17DvKCHvI8pZPOYtHHDEBksMke9PnJU4p6oMiRHEZBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q244ttPR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q244ttPR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78885C4CEFB; Tue, 30 Dec 2025 12:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097342; bh=NTeeHPufA6c9dV+RQF6ZxS7SbDP+spUHbjMejj1+0dY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Q244ttPRCu9YH15WBau25TcqsxNwdU8lEK4Y5cUIILayBuaaF/xHeXZO0BI4dK8OX Mt0Zxk8hIKhhw+FjxFXzpLA1eOu/3JdVlbTXpE5rJql7k37dfdET6Ae/Hguno3BGbt 21TZWUY4ytIpLj2PoMGEMKwtIUv3RZymg1djWXCY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50870: powerpc/rtas: avoid device tree lookups in rtas_os_term() Date: Tue, 30 Dec 2025 13:20:06 +0100 Message-ID: <2025123050-CVE-2022-50870-c90b@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=boUDRO6Yx7oxtZc3vFB8z6JN21swacfyr73dcShPVc4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBh9P9Ej4eFs4S7LSOWP3065RlC3+qbrpecmDN54S69 98esjfs6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJnE1gmF/nut/qb/yslNMF x53OxDL/3/NXoYJhwSGR/iPWTsw/ys+2vHogKvlYx/i9CwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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] The Linux kernel CVE team has assigned CVE-2022-50870 to this issue. Affected and fixed versions =========================== Fixed in 4.14.303 with commit e23822c7381c59d9e42e65771b6e17c71ed30ea7 Fixed in 4.19.270 with commit 06a07fbb32b3a23eec20a42b1e64474da0a3b33e Fixed in 5.4.229 with commit c2fa91abf22a705cf02f886cd99cff41f4ceda60 Fixed in 5.10.163 with commit f2167f10fcca68ab9ae3f8d94d2c704c5541ac69 Fixed in 5.15.87 with commit d8939315b7342860df143afe0adda6212cdd3193 Fixed in 6.0.17 with commit 698e682c849e356fb47a8be47ca8baa817cf31e0 Fixed in 6.1.3 with commit 464d10e8d797454e16a173ef1292a446b2adf21c Fixed in 6.2 with commit ed2213bfb192ab51f09f12e9b49b5d482c6493f3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50870 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/powerpc/kernel/rtas.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/e23822c7381c59d9e42e65771b6e17c71ed30ea7 https://git.kernel.org/stable/c/06a07fbb32b3a23eec20a42b1e64474da0a3b33e https://git.kernel.org/stable/c/c2fa91abf22a705cf02f886cd99cff41f4ceda60 https://git.kernel.org/stable/c/f2167f10fcca68ab9ae3f8d94d2c704c5541ac69 https://git.kernel.org/stable/c/d8939315b7342860df143afe0adda6212cdd3193 https://git.kernel.org/stable/c/698e682c849e356fb47a8be47ca8baa817cf31e0 https://git.kernel.org/stable/c/464d10e8d797454e16a173ef1292a446b2adf21c https://git.kernel.org/stable/c/ed2213bfb192ab51f09f12e9b49b5d482c6493f3