From mboxrd@z Thu Jan 1 00:00:00 1970 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 B9AC616D31C for ; Wed, 21 Aug 2024 06:13:37 +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=1724220817; cv=none; b=pEmd2AmqpsSMhHv4Qc2GdOSi0pXB27BUsnZ768j96BGspIX3yEpNQ6mjtBZfaDpAzrYtROhUaEeWlyUe361t++r8Cng1Mt93t2FUuAeuNcutnvklcudvgPzycTP4r20qJx8kJAGOmrM9qd/u/vHA8UGRmtl+ZR+4BqswEJKoB8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220817; c=relaxed/simple; bh=Oq3tk+fYt5ZdeJbg7SQSYScZkDbKBxMkWcN+OcKITEs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AoxWCIN4qUeAaitcLKwz4ty8yC5l/J3LvrYaVewMD4bFXaBz33lFaJg6G3GPAL5/K+u6MwvDRtdZOfmijAUnShAhPHk86MY3K2/f9kQ6vfwQHGV4p+GIZkNHxzb/ICa9A6K3M62PjOFmpbUqo52BfvO+oLsx4hR0G32rIp6yQ4k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=owuqebjF; 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="owuqebjF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49C12C32782; Wed, 21 Aug 2024 06:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220817; bh=Oq3tk+fYt5ZdeJbg7SQSYScZkDbKBxMkWcN+OcKITEs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=owuqebjFnnI+fSq6nHp6ktR4ZjkHH+YCWdBXJ92B0eE6VJj8j7rm8LeglCxOzKi8M Zge3+FntKMYQka2API9ElzLf8bK8elbM4C7Jh8TINkaD+IJ9h3bRZdht+01WNcdJaL FcSZpBdyAaiLvUQ9qhBkfFuILpLao+gB4/Esfozw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48891: regulator: da9211: Use irq handler when ready Date: Wed, 21 Aug 2024 14:11:25 +0800 Message-ID: <2024082109-CVE-2022-48891-e463@gregkh> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2797; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Oq3tk+fYt5ZdeJbg7SQSYScZkDbKBxMkWcN+OcKITEs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/6K5jcarKpysvthEW2y8OF8Bv37FtYrj97cGnln0 y1+pTqjjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/1UMC7Ynfkp+uuTg464e wznzT520nuqXackwP+js1Zi9T6Tl9hxrPt1u+uJm38GTzgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: regulator: da9211: Use irq handler when ready If the system does not come from reset (like when it is kexec()), the regulator might have an IRQ waiting for us. If we enable the IRQ handler before its structures are ready, we crash. This patch fixes: [ 1.141839] Unable to handle kernel read from unreadable memory at virtual address 0000000000000078 [ 1.316096] Call trace: [ 1.316101] blocking_notifier_call_chain+0x20/0xa8 [ 1.322757] cpu cpu0: dummy supplies not allowed for exclusive requests [ 1.327823] regulator_notifier_call_chain+0x1c/0x2c [ 1.327825] da9211_irq_handler+0x68/0xf8 [ 1.327829] irq_thread+0x11c/0x234 [ 1.327833] kthread+0x13c/0x154 The Linux kernel CVE team has assigned CVE-2022-48891 to this issue. Affected and fixed versions =========================== Fixed in 4.14.303 with commit 1c1afcb8839b Fixed in 4.19.270 with commit f75cde714e0a Fixed in 5.4.229 with commit d443308edbfb Fixed in 5.10.164 with commit d4aa749e0464 Fixed in 5.15.89 with commit 470f6a9175f1 Fixed in 6.1.7 with commit ad1336274f73 Fixed in 6.2 with commit 02228f6aa6a6 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-48891 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: drivers/regulator/da9211-regulator.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/1c1afcb8839b91c09d211ea304faa269763b1f91 https://git.kernel.org/stable/c/f75cde714e0a67f73ef169aa50d4ed77d04f7236 https://git.kernel.org/stable/c/d443308edbfb6e9e757b478af908515110d1efd5 https://git.kernel.org/stable/c/d4aa749e046435f054e94ebf50cad143d6229fae https://git.kernel.org/stable/c/470f6a9175f13a53810734658c35cc5bba33be01 https://git.kernel.org/stable/c/ad1336274f733a7cb1f87b5c5908165a2c14df53 https://git.kernel.org/stable/c/02228f6aa6a64d588bc31e3267d05ff184d772eb