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 407DE78F4C for ; Sat, 28 Dec 2024 09:47:24 +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=1735379244; cv=none; b=expNzh4fUJjRYuuHx2BRRr00PRrvbI02Db4L8VqFbxUAZbxIwgx8Mgr9AjWC1yk38ZO2nG5fDmJ5U1+Hrjh5rYc3Hvs+BakDO85wumPC6LCNTQn9jkj3lCZm2Hp1sNtT9m66hzA/bExRoiXZwiSO/RqnvSbcQDamG+e6v/YU41k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735379244; c=relaxed/simple; bh=YMoA2/FnVZgwgWbxiO9UnUbgwJsSn4cDXd+9YiAKXRc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fs40FpG568ZFqq/5xzetDZD4CCjApYw1s8C6faANYY66N5Rqg2cFhoFwTM3Qp0mTQXkVW/9uOpIKvBm6QfVnH6BBflZiRCNJIDsvliXEazfvz4aMTX7Vn7B3RUkRLKvnzVhs7T7O0+qvdv19fDkN65u1Y71BkzMi6q37nOxdIKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=REDMWXfV; 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="REDMWXfV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC90BC4CECD; Sat, 28 Dec 2024 09:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735379244; bh=YMoA2/FnVZgwgWbxiO9UnUbgwJsSn4cDXd+9YiAKXRc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=REDMWXfVR3oRY51vQV0RSwC3mFAcUJrNipm2XNU4l5d3OGZpbljvP8usDTTIxjJDh 0gmORpAJ4CjdaMBTm/oCTAKBy1nQnBZqtNmlIhVrSlTv+75mnGnWxoo/U/i9D1rjiN 8AKSRI2A6o3ZSPTyKksTeO/TLRdl3vMfT+KzA+HQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56682: irqchip/riscv-aplic: Prevent crash when MSI domain is missing Date: Sat, 28 Dec 2024 10:45:34 +0100 Message-ID: <2024122833-CVE-2024-56682-3219@gregkh> X-Mailer: git-send-email 2.47.1 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=2159; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YMoA2/FnVZgwgWbxiO9UnUbgwJsSn4cDXd+9YiAKXRc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn5J/YWfvBnbt6/NFi4dNYRXufJlj8M5I/wbQ/ZYnRre l21yP/OjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIBUaG+enCF2+xOU+OY57q +n7Hl3cXwk53ljPML1U8s2JNuEtdUrZ5cZtBUP2Wl+0KAA== 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: irqchip/riscv-aplic: Prevent crash when MSI domain is missing If the APLIC driver is probed before the IMSIC driver, the parent MSI domain will be missing, which causes a NULL pointer dereference in msi_create_device_irq_domain(). Avoid this by deferring probe until the parent MSI domain is available. Use dev_err_probe() to avoid printing an error message when returning -EPROBE_DEFER. The Linux kernel CVE team has assigned CVE-2024-56682 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit ca8df97fe6798afbe395fc4a8e23bac0c7fbd248 and fixed in 6.12.2 with commit 285a07810ab3bcedc2bd380ebacbf6b4942a889a Issue introduced in 6.10 with commit ca8df97fe6798afbe395fc4a8e23bac0c7fbd248 and fixed in 6.13-rc1 with commit 1f181d1cda56c2fbe379c5ace1aa1fac6306669e 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-2024-56682 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/irqchip/irq-riscv-aplic-main.c drivers/irqchip/irq-riscv-aplic-msi.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/285a07810ab3bcedc2bd380ebacbf6b4942a889a https://git.kernel.org/stable/c/1f181d1cda56c2fbe379c5ace1aa1fac6306669e