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 4F6EC30506D for ; Wed, 12 Nov 2025 10:25:06 +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=1762943106; cv=none; b=EEWj+nNtDSYwAYuRjBirFGjhkS7bi76IwZqaL1N99VI4+5nvCIBV3BjrUy7TULlohl5Ny5bSjAH+5fsTp8HRiQVFrhoMbEagHVwYKLzdbld3fC1XkteFfZ4igajr260Vrv08KcwAa1I7Y9ZgQ1LKBytwqqHPNbh5j/iEZP1w+KI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943106; c=relaxed/simple; bh=lWeoCe8GM3S0DnX5bmbh0kVCtpsU/5le+GHMsmCER/8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MMFxGmqUH2tdPYijpelG0B3XYG5TpHU5JU+QdKYE5YlKsTQHKyAoscprRRHIA1GVnkvu5uVSnv4nnO/a030Z65MiJdgkY01Wx2QHk75c1b70UmBlbctMBa1m+kviH/892PjfeEMDdsFIZOnLhkNi5lYsnSILcfQqWdjaRd6gW2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Afa+Y/tY; 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="Afa+Y/tY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1092DC2BC87; Wed, 12 Nov 2025 10:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943106; bh=lWeoCe8GM3S0DnX5bmbh0kVCtpsU/5le+GHMsmCER/8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Afa+Y/tY6da/0X6HOa/cC7LuFEj8Q4De9YZmSIbD1BiHY6i/RF7iuZGdzk0HLY74g DFAqmWNm4mVw33wIYdE/w2uPRhl7au9tOKIwxGCEkpg5GXaa5WdTRk3ooAZUJyBv96 Wh+cDQ6g8i9rlRBndWsSHSC/9IchzvY9BSac8xvs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40161: mailbox: zynqmp-ipi: Fix SGI cleanup on unbind Date: Wed, 12 Nov 2025 19:24:42 +0900 Message-ID: <2025111239-CVE-2025-40161-8d13@gregkh> X-Mailer: git-send-email 2.51.2 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=2345; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BRmOp8B9qNYKjjLhOKEZMqNHmKYRzKZqpbhOosGethI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCRnHbj+xWjn51wq+dfeXVgTN5Zr1qKD2+m6LlTNDp 1i+cays7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJuE9mWHDN6ukRdt13+pPb pSSmRnDWTsne7s8wv+JYITMvT0vZg6kbTY00J0myOBj+AgA= 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: mailbox: zynqmp-ipi: Fix SGI cleanup on unbind The driver incorrectly determines SGI vs SPI interrupts by checking IRQ number < 16, which fails with dynamic IRQ allocation. During unbind, this causes improper SGI cleanup leading to kernel crash. Add explicit irq_type field to pdata for reliable identification of SGI interrupts (type-2) and only clean up SGI resources when appropriate. The Linux kernel CVE team has assigned CVE-2025-40161 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 6ffb1635341bec50fa9540ae7827d1e5d75ae0b0 and fixed in 6.12.54 with commit 1ee147efee68be00203b1fee6479911debb1edb2 Issue introduced in 6.10 with commit 6ffb1635341bec50fa9540ae7827d1e5d75ae0b0 and fixed in 6.17.4 with commit 32bf7c6e01f5ba17a53ba236a770bd0274cefdf4 Issue introduced in 6.10 with commit 6ffb1635341bec50fa9540ae7827d1e5d75ae0b0 and fixed in 6.18-rc1 with commit bb160e791ab15b89188a7a19589b8e11f681bef3 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-2025-40161 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/mailbox/zynqmp-ipi-mailbox.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/1ee147efee68be00203b1fee6479911debb1edb2 https://git.kernel.org/stable/c/32bf7c6e01f5ba17a53ba236a770bd0274cefdf4 https://git.kernel.org/stable/c/bb160e791ab15b89188a7a19589b8e11f681bef3