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 BADB1215F42 for ; Thu, 8 May 2025 06:40:01 +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=1746686401; cv=none; b=i45+LvGCqMUSTshIcP73kF94491WgPwjr7bVGxoIikJbAI6S/SewS8ykyQAPR4316ZepYqUn0/VvmIO8uDShdSGhKmkqwRjOuUE/E2lz8seH8d/Ebv3pwtBNwe5816vKKnU9BF8GeLzGeeyf9O2gMpMBfzbW5WbIwDkBiLoQxXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746686401; c=relaxed/simple; bh=CrTrDyXlKfHtxlW2fUYUg3N9XrW1HKc0R0vcerdGb8E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RSp89YrA+r5rJXwJ8bNvvoF3Xq3TE/aMTKqLJv3rnt5bpRjjaNIj4vQ93x0UGbI7vdcMZ+PUprR5Fgiv93Y/gCqAH1cSG7ibXDeM/IjHY2U83aSv3e+ldzVyJrRt3CAdSCWVIE2Vw4g5/BiykyH3sfvnkUT0Mpt4+42zQNw6S2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RAgCQS2C; 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="RAgCQS2C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC84CC4CEEB; Thu, 8 May 2025 06:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746686401; bh=CrTrDyXlKfHtxlW2fUYUg3N9XrW1HKc0R0vcerdGb8E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RAgCQS2CKmKmIK5yqqoSfRU0jC13OUxHW+BBgwrZqBkcNdnVBAWW0sxbG5HpVO8Tr SABcySTpv4EAfXMVOTpVWEe6NZIcfwfDTpS6Me4aUzoM61dQxyz22DrvH4md3MsRH9 5BYr/OYiOcEA0rD0edg9EziWAMoPi1T8Ojzf1878= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37815: misc: microchip: pci1xxxx: Fix Kernel panic during IRQ handler registration Date: Thu, 8 May 2025 08:39:24 +0200 Message-ID: <2025050818-CVE-2025-37815-7882@gregkh> X-Mailer: git-send-email 2.49.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=3074; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vWegeh42FACRytoLuitfDUPYD3vWIKwdefQ7Bc4TlSI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkygdOMl+uxcAWsjd20wPna75aOoHR5h67S0/2sW09lP Tuk/MmqI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbymZVhwY1nFjFFT88eeTrn dfWpM4+PzLbZWMSw4MzyrV6V69XXcBQd2Oix9e8e4Z70XQA= 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: misc: microchip: pci1xxxx: Fix Kernel panic during IRQ handler registration Resolve kernel panic while accessing IRQ handler associated with the generated IRQ. This is done by acquiring the spinlock and storing the current interrupt state before handling the interrupt request using generic_handle_irq. A previous fix patch was submitted where 'generic_handle_irq' was replaced with 'handle_nested_irq'. However, this change also causes the kernel panic where after determining which GPIO triggered the interrupt and attempting to call handle_nested_irq with the mapped IRQ number, leads to a failure in locating the registered handler. The Linux kernel CVE team has assigned CVE-2025-37815 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.125 with commit 79aef6187e16b2d32307c8ff610e9e04f7f86e1f and fixed in 6.1.136 with commit 1263d5f581908602c618c6665e683c4436383a09 Issue introduced in 6.6.72 with commit 25692750c0259c5b65afec467d97201a485e8a00 and fixed in 6.6.89 with commit 62957f58ab3aa7fa792dc6ff3575624062539a4d Issue introduced in 6.12.10 with commit 47d3749ec0cb56b7b98917c190a8c10cb54216fd and fixed in 6.12.26 with commit 12cc2193f2b9548e8ea5fbce8201b44158222edf Issue introduced in 6.13 with commit 194f9f94a5169547d682e9bbcc5ae6d18a564735 and fixed in 6.14.5 with commit 4e02059dc91068bc5017b8546f9ec3b930f6d6a6 Issue introduced in 6.13 with commit 194f9f94a5169547d682e9bbcc5ae6d18a564735 and fixed in 6.15-rc4 with commit 18eb77c75ed01439f96ae5c0f33461eb5134b907 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-37815 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/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.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/1263d5f581908602c618c6665e683c4436383a09 https://git.kernel.org/stable/c/62957f58ab3aa7fa792dc6ff3575624062539a4d https://git.kernel.org/stable/c/12cc2193f2b9548e8ea5fbce8201b44158222edf https://git.kernel.org/stable/c/4e02059dc91068bc5017b8546f9ec3b930f6d6a6 https://git.kernel.org/stable/c/18eb77c75ed01439f96ae5c0f33461eb5134b907