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 0F47D14D70E for ; Sun, 9 Feb 2025 11:37:38 +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=1739101058; cv=none; b=G90AdERAl1PMUyECkn98FXDKb7Ajkon6TRUI1FmDvN06fGpEHN6ONR6FdaJ2bY5KT8gt1fQdAWKTTJY3dcvLG9gHxk1uu01Vcl7os59akyPQ2wewFb5kG5xNwQWESMcQcOXt+QWj/lblLfAtnfnGwAvfjN3oOsbdOvNjNXTnDio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739101058; c=relaxed/simple; bh=zUJzKc4HujD++pQgLcqYGmGbvRkRbBM8egi3dayyHXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TS50w/mo8mYaqVihcT5YglzLZi3Qm1dDLBmDebLuupoPS5TI8Q1Cc1BvjP4wVqVP2hvXIe7itXI28gqESdRbZ/S1+FKvnjkqBgUGdtvWkrXhEb5OQr5CWShedZB9OnD78iFEf0eoD5BcLgi9u2ZH/bAcQUqNAw5Xtt4uQJ9qVjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gq2VS+Yh; 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="gq2VS+Yh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FDAFC4CEDD; Sun, 9 Feb 2025 11:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739101057; bh=zUJzKc4HujD++pQgLcqYGmGbvRkRbBM8egi3dayyHXw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gq2VS+YhGIaxDw+S6Ungm8BKiGGbvyO+kuaF0a6M6e7GQvwNdX1pAIoy29T+uXPs4 tLflyqv6Jqd7f6pxu7qlMRGQ+slKzpxTL5B3t9milu74/Dpa0fib0Yj/gAIE0/4tg9 rSazbUpEneiMKqYUftl1A0biyJ7EU/ahREb+nqBM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57949: irqchip/gic-v3-its: Don't enable interrupts in its_irq_set_vcpu_affinity() Date: Sun, 9 Feb 2025 12:36:29 +0100 Message-ID: <2025020928-CVE-2024-57949-1d60@gregkh> X-Mailer: git-send-email 2.48.1 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=2926; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zUJzKc4HujD++pQgLcqYGmGbvRkRbBM8egi3dayyHXw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkrJtvobLmTrhbr2MGzdcXp9mntvFY1CZpsenKZV40en p9w6NyrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIlR/DgoXvt3HMmCzd6r5H 02Xj4jWmTW16ngzz7K5NOvDv3sIJ5xyMOJuP3Doe8OjNCwA= 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: irqchip/gic-v3-its: Don't enable interrupts in its_irq_set_vcpu_affinity() The following call-chain leads to enabling interrupts in a nested interrupt disabled section: irq_set_vcpu_affinity() irq_get_desc_lock() raw_spin_lock_irqsave() <--- Disable interrupts its_irq_set_vcpu_affinity() guard(raw_spinlock_irq) <--- Enables interrupts when leaving the guard() irq_put_desc_unlock() <--- Warns because interrupts are enabled This was broken in commit b97e8a2f7130, which replaced the original raw_spin_[un]lock() pair with guard(raw_spinlock_irq). Fix the issue by using guard(raw_spinlock). [ tglx: Massaged change log ] The Linux kernel CVE team has assigned CVE-2024-57949 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.95 with commit 2458f2362f695584bd824c922caa07ffc4fe0d5c and fixed in 6.1.127 with commit d7b0e89610dd45ac6cf0d6f99bfa9ccc787db344 Issue introduced in 6.6.35 with commit 5c0fb9cb404a2efbbc319ff9d1b877cf4e47e950 and fixed in 6.6.74 with commit 6c84ff2e788fce0099ee3e71a3ed258b1ca1a223 Issue introduced in 6.10 with commit b97e8a2f7130a4b30d1502003095833d16c028b3 and fixed in 6.12.11 with commit 93955a7788121ab5a0f7f27e988b2ed1135a4866 Issue introduced in 6.10 with commit b97e8a2f7130a4b30d1502003095833d16c028b3 and fixed in 6.13 with commit 35cb2c6ce7da545f3b5cb1e6473ad7c3a6f08310 Issue introduced in 6.9.6 with commit c11039edbabdbccf0728844f1002d750d06f9eff 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-57949 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/irqchip/irq-gic-v3-its.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/d7b0e89610dd45ac6cf0d6f99bfa9ccc787db344 https://git.kernel.org/stable/c/6c84ff2e788fce0099ee3e71a3ed258b1ca1a223 https://git.kernel.org/stable/c/93955a7788121ab5a0f7f27e988b2ed1135a4866 https://git.kernel.org/stable/c/35cb2c6ce7da545f3b5cb1e6473ad7c3a6f08310