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 D2F813B8937 for ; Wed, 25 Mar 2026 10:32:49 +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=1774434769; cv=none; b=jKAWwc5tRYntM8C1YxXXsS5CkvB/2PMNt4lCkBaDGHG6YuBkwrccTH5wuwpNhIbsaWK1dchIQSfpMzxvWWtz2E4BZDOt7r6a7VS7rkOKP1jksPO70Y9DITmoQx8pSAXxyzE//bM+IwAQ3j7u/a3vBhfzdRSMFBvPzOFCkfc1T+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434769; c=relaxed/simple; bh=Kx5koxD34jXgl5wTJ4aeW0no/fr9F5C/pdgYgb6Yb/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lONscBzEBwXTV8XnGybT9XYLOe9FwvQFvNnItMV8frxAy0lxzr+ARw4qs42XqzjdLZF7ipt1pAZGxJawoFrGqaW8FWRONqxuFptkRcM2jF2P5POCTnxc4C359lm30at88gsHPU8hGOyTmmet1YQEY8GtkQRAUDFyD56j5nnsyTY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H1DeeeRy; 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="H1DeeeRy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60258C4CEF7; Wed, 25 Mar 2026 10:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434769; bh=Kx5koxD34jXgl5wTJ4aeW0no/fr9F5C/pdgYgb6Yb/o=; h=From:To:Cc:Subject:Date:Reply-To:From; b=H1DeeeRytLkj+ZD51HzqD1LSvpvhfHjpMvvrPdoQJrOEquqe/vXF5Aalip5aF6Iil VqF9wLdH7wNELx9wvoyR7T3O8UJ4zNhJOB3DffzYs6z/0/Mwq44KLIP0biA0Dtee5R RGPW8DseWKcoX2ukhnWy4GaulxryLh/D6NwDMoFE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23357: can: mcp251x: fix deadlock in error path of mcp251x_open Date: Wed, 25 Mar 2026 11:27:41 +0100 Message-ID: <2026032538-CVE-2026-23357-605e@gregkh> X-Mailer: git-send-email 2.53.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=3314; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RFuMUhZ0QrV6viHd/e3xsGSWqZ4Qh+ATVQ8mgR5HtoY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd8Tl7itly7imHJ/Jvm6PXHO4VnLym67/GUf3su0oO vb17gnxjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIwS+G+SUdaUcT0oJORDrK 7bX71KrMlHPqB8P82H/mEhXS2/rCgr9nzkl8sjfaYJMBAA== 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: can: mcp251x: fix deadlock in error path of mcp251x_open The mcp251x_open() function call free_irq() in its error path with the mpc_lock mutex held. But if an interrupt already occurred the interrupt handler will be waiting for the mpc_lock and free_irq() will deadlock waiting for the handler to finish. This issue is similar to the one fixed in commit 7dd9c26bd6cf ("can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open") but for the error path. To solve this issue move the call to free_irq() after the lock is released. Setting `priv->force_quit = 1` beforehand ensure that the IRQ handler will exit right away once it acquired the lock. The Linux kernel CVE team has assigned CVE-2026-23357 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.34 with commit bf66f3736a945dd4e92d86427276c6eeab0a6c1d and fixed in 6.1.167 with commit 256f0cff6e946c570392bda1d01a65e789a7afd0 Issue introduced in 2.6.34 with commit bf66f3736a945dd4e92d86427276c6eeab0a6c1d and fixed in 6.6.130 with commit b73832292cd914e87a55e863ba4413a907e7db6b Issue introduced in 2.6.34 with commit bf66f3736a945dd4e92d86427276c6eeab0a6c1d and fixed in 6.12.77 with commit 38063cc435b69d56e76f947c10d336fcb2953508 Issue introduced in 2.6.34 with commit bf66f3736a945dd4e92d86427276c6eeab0a6c1d and fixed in 6.18.17 with commit d27f12c3f5e85efc479896af4a69eccb37f75e8e Issue introduced in 2.6.34 with commit bf66f3736a945dd4e92d86427276c6eeab0a6c1d and fixed in 6.19.7 with commit e728f444c913a91d290d1824b4770780bbd6378e Issue introduced in 2.6.34 with commit bf66f3736a945dd4e92d86427276c6eeab0a6c1d and fixed in 7.0-rc3 with commit ab3f894de216f4a62adc3b57e9191888cbf26885 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-2026-23357 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/net/can/spi/mcp251x.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/256f0cff6e946c570392bda1d01a65e789a7afd0 https://git.kernel.org/stable/c/b73832292cd914e87a55e863ba4413a907e7db6b https://git.kernel.org/stable/c/38063cc435b69d56e76f947c10d336fcb2953508 https://git.kernel.org/stable/c/d27f12c3f5e85efc479896af4a69eccb37f75e8e https://git.kernel.org/stable/c/e728f444c913a91d290d1824b4770780bbd6378e https://git.kernel.org/stable/c/ab3f894de216f4a62adc3b57e9191888cbf26885