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 1AB49146A68 for ; Fri, 5 Apr 2024 08:24:58 +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=1712305499; cv=none; b=pN4Sfl/MxMnl7aIBycQMWtARel1gKiXdbH+dx1/yPx641GAFcFO4N0RU7LVU96XwnbIPlkrx5ZR/94cDxs1TUewArJFmbFRs/O/VUrGS+ZNjXYMJggtNz8Qc8COcJjcEF8m1s82nVezAbEGKYhn7YZ01bfA38nXc1IGbNQkdwts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305499; c=relaxed/simple; bh=43dO4/I2YrJZYYCHMwKDVu8s55cuWGx80F3aebviusU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OXCitleTWF/qrZVGoAHd5AkeH4l7eP9Mm2PucaelI4TKkHBIX0fkUkWGDh3zedBsDFrrgpQyM2AXWLd6YkM1MuanP3AneujGEJBLlyI/TCyWoRrzy9rDHpUv5L6BZjDr7lmAYDObdCqh96Rm+as7C0XVMdBuuOkmf9ax13n0Cws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S0WwB2/b; 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="S0WwB2/b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 583B6C433F1; Fri, 5 Apr 2024 08:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712305498; bh=43dO4/I2YrJZYYCHMwKDVu8s55cuWGx80F3aebviusU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S0WwB2/b36cUOdHDpjwdpDU/Aq+nqC1OaJnaPAgWCCe7m1tKRx90m62D53dmf1YIi 6xLFwL7nldHXoxuWPxzy57rNAQhF4bPVbBW5WfwHvtSum4nRkkf0MWO2fczGFLrlhZ 6SigQ84KY+BeJSE3iQ6QMOMEPm5Fx9qaXmExaUU8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26810: vfio/pci: Lock external INTx masking ops Date: Fri, 5 Apr 2024 10:24:49 +0200 Message-ID: <2024040548-CVE-2024-26810-4371@gregkh> X-Mailer: git-send-email 2.44.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=2787; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=43dO4/I2YrJZYYCHMwKDVu8s55cuWGx80F3aebviusU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGn8WwM+f+BTenctfsvp3EPsbq0uLCfW9Xn617gtrHb6K 3nzeXxCRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzERYxhnrpA7ylzE79Pusvm 3HsYEZkfd/vuKob5jgrqm6qWl3F8lZNWfFn0UGnK+kl3AA== 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: vfio/pci: Lock external INTx masking ops Mask operations through config space changes to DisINTx may race INTx configuration changes via ioctl. Create wrappers that add locking for paths outside of the core interrupt code. In particular, irq_type is updated holding igate, therefore testing is_intx() requires holding igate. For example clearing DisINTx from config space can otherwise race changes of the interrupt configuration. This aligns interfaces which may trigger the INTx eventfd into two camps, one side serialized by igate and the other only enabled while INTx is configured. A subsequent patch introduces synchronization for the latter flows. The Linux kernel CVE team has assigned CVE-2024-26810 to this issue. Affected and fixed versions =========================== Issue introduced in 3.6 with commit 89e1f7d4c66d and fixed in 6.1.84 with commit 3fe0ac10bd11 Issue introduced in 3.6 with commit 89e1f7d4c66d and fixed in 6.6.24 with commit 04a4a017b9ff Issue introduced in 3.6 with commit 89e1f7d4c66d and fixed in 6.7.12 with commit 6fe478d855b2 Issue introduced in 3.6 with commit 89e1f7d4c66d and fixed in 6.8.3 with commit 03505e3344b0 Issue introduced in 3.6 with commit 89e1f7d4c66d and fixed in 6.9-rc1 with commit 810cd4bb5345 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-26810 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/vfio/pci/vfio_pci_intrs.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/3fe0ac10bd117df847c93408a9d428a453cd60e5 https://git.kernel.org/stable/c/04a4a017b9ffd7b0f427b8c376688d14cb614651 https://git.kernel.org/stable/c/6fe478d855b20ac1eb5da724afe16af5a2aaaa40 https://git.kernel.org/stable/c/03505e3344b0576fd619416793a31eae9c5b73bf https://git.kernel.org/stable/c/810cd4bb53456d0503cc4e7934e063835152c1b7