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 23CBB1494DF for ; Thu, 27 Mar 2025 16:45:21 +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=1743093921; cv=none; b=RNb1j7+ddqvoEOueO2aBK1tweQxsKCetREbUKIXjG92oXASauumazzFFsEIxlhvV/JrNVeDdSD77IwVk8ZuNT8cykm0DH6uK62l4Q7DaWK9zVwVWv5ZJgP+a1IzHNE2NiCP7JzH8kMJC1G/USIok4aS6wb7N9MANrr3zZRmjyhY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093921; c=relaxed/simple; bh=geLyQhxP+ab5NHdIRGEYxgc0076KukUUBdh+tciBcuw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WD7GPF/XHMZpLS0qJLvHNvCMOqQPMilGcDxquZ37NcJTFy6rql6YbOG0sYaGnZggRrL2GeB5BtKvFf4fJw0iR/prRt/GDej5R4hvykvdZxjVE8BSNdEyJkjvLzkKetPTbToZnIUyDlEqeK/QW5KTF4wplxcgungu7by/K9k+/WI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TruVyz42; 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="TruVyz42" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85EABC4CEE5; Thu, 27 Mar 2025 16:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093921; bh=geLyQhxP+ab5NHdIRGEYxgc0076KukUUBdh+tciBcuw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TruVyz42E0rzU/9/LTj/5i0AX8sIOr2m5ZAThZTFN4Eq9z7J4xoG0/2+D1iM4knJH Q+KJYe1Tya8U0+NdN04vvcRtwcGCurjEooxo/m1P4dcjUcBdG5lPANxn9QT0yZJaxS uQnAoGtkE2Qn/Sm3wEyV0Cu2IhTcgiaccH/XGppU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52993: x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL Date: Thu, 27 Mar 2025 17:43:40 +0100 Message-ID: <2025032709-CVE-2023-52993-3697@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=3827; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=geLyQhxP+ab5NHdIRGEYxgc0076KukUUBdh+tciBcuw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG2Sz6hz8YnyFBFtWHSleF605yXUn/zaP4MO7Q5IOh N6827yyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCv59hfpLesaX+Qn4rvmzX qYxcJZ1Y52pvxzBP/+SJmrXTmbp3nXHI2axf6nHl/S82AA== 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: x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL Baoquan reported that after triggering a crash the subsequent crash-kernel fails to boot about half of the time. It triggers a NULL pointer dereference in the periodic tick code. This happens because the legacy timer interrupt (IRQ0) is resent in software which happens in soft interrupt (tasklet) context. In this context get_irq_regs() returns NULL which leads to the NULL pointer dereference. The reason for the resend is a spurious APIC interrupt on the IRQ0 vector which is captured and leads to a resend when the legacy timer interrupt is enabled. This is wrong because the legacy PIC interrupts are level triggered and therefore should never be resent in software, but nothing ever sets the IRQ_LEVEL flag on those interrupts, so the core code does not know about their trigger type. Ensure that IRQ_LEVEL is set when the legacy PCI interrupts are set up. The Linux kernel CVE team has assigned CVE-2023-52993 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 4.14.305 with commit 744fe9be9665227335539b7a77ece8d9ff62b6c0 Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 4.19.272 with commit 496975d1a2937f4baadf3d985991b13fc4fc4f27 Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 5.4.231 with commit 8770cd9d7c14aa99c255a0d08186f0be953e1638 Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 5.10.166 with commit e284c273dbb4c1ed68d4204bff94d0b10e4a90f5 Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 5.15.91 with commit 0b08201158f177aab469e356b4d6af24fdd118df Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 6.1.9 with commit 137f1b47da5f58805da42c1b7811e28c1e353f39 Issue introduced in 2.6.18 with commit a4633adcdbc15ac51afcd0e1395de58cee27cf92 and fixed in 6.2 with commit 5fa55950729d0762a787451dc52862c3f850f859 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-2023-52993 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: arch/x86/kernel/i8259.c arch/x86/kernel/irqinit.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/744fe9be9665227335539b7a77ece8d9ff62b6c0 https://git.kernel.org/stable/c/496975d1a2937f4baadf3d985991b13fc4fc4f27 https://git.kernel.org/stable/c/8770cd9d7c14aa99c255a0d08186f0be953e1638 https://git.kernel.org/stable/c/e284c273dbb4c1ed68d4204bff94d0b10e4a90f5 https://git.kernel.org/stable/c/0b08201158f177aab469e356b4d6af24fdd118df https://git.kernel.org/stable/c/137f1b47da5f58805da42c1b7811e28c1e353f39 https://git.kernel.org/stable/c/5fa55950729d0762a787451dc52862c3f850f859