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 13B4123BF93 for ; Wed, 12 Mar 2025 09:43:31 +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=1741772611; cv=none; b=aiVCn7+BFt0g5vazyc4Y/D7qRs0ijrpJkPR8ACt8vBmpg1Z6LgP0rCqb3E5BFZd6P2/vnYSqMCae0WPtnDbhIxYv1FO/EGVyYPcR/qlWKsiqxbCRkyPG09PW3jxx5hHSMrcHfRaii4z8sLAx/6wfz3TO+dMkjyNbaWkDYNaAdHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741772611; c=relaxed/simple; bh=l3AEB3bLurJmV+BqootWxYLGXFn/CRc8WmK631CkNEs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aXykakL3DVDyZt3OuASLcZ/hTeRXE+2OcERN+gTJ0gvQpj37GYZx31euNAi7/xQjCP7rTkonG8ikNyvqHq8Tyrb7wa4N0E8AehWL5hb1FDDEUXU5Bwy6PioeEj+VxMGj37HyDy/1sJ3K1OAjSy7vpwtTFhjJYlHlsGqgV4YXwYo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dnyHizd/; 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="dnyHizd/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F7A2C4CEEC; Wed, 12 Mar 2025 09:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741772611; bh=l3AEB3bLurJmV+BqootWxYLGXFn/CRc8WmK631CkNEs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dnyHizd/KEnf7Qo543H8tA53JeO9qHXHqkpp8ElGgIvyFOFLy5+8ykdXp1xLai11q /tdmncRDYS0ypvuqdoaVb+Us9ZObV0G06KnJ3tp0kDQO71+oR0iJnelpH9W9Q99Zp4 51BiHvkaZ8NqHI1hhGj8pjOVMsebyfkN4R4qQ58c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21849: drm/i915/gt: Use spin_lock_irqsave() in interruptible context Date: Wed, 12 Mar 2025 10:42:15 +0100 Message-ID: <2025031212-CVE-2025-21849-c95e@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=2624; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l3AEB3bLurJmV+BqootWxYLGXFn/CRc8WmK631CkNEs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkXw750BTRPj+S/9WvqPE6nh10b76p+qbfjm5geWx1n8 lqp+8qWjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI+iGGeTr/01Tzf547x2wl nGa+JVH99Aul5Qzz1COl2UJeZGk4idxOXZz2OjtQgtURAA== 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: drm/i915/gt: Use spin_lock_irqsave() in interruptible context spin_lock/unlock() functions used in interrupt contexts could result in a deadlock, as seen in GitLab issue #13399, which occurs when interrupt comes in while holding a lock. Try to remedy the problem by saving irq state before spin lock acquisition. v2: add irqs' state save/restore calls to all locks/unlocks in signal_irq_work() execution (Maciej) v3: use with spin_lock_irqsave() in guc_lrc_desc_unpin() instead of other lock/unlock calls and add Fixes and Cc tags (Tvrtko); change title and commit message (cherry picked from commit c088387ddd6482b40f21ccf23db1125e8fa4af7e) The Linux kernel CVE team has assigned CVE-2025-21849 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 2f2cc53b5fe7022f3ae602eb24573d52f8740959 and fixed in 6.12.17 with commit 2bf1f4c129db7a10920655b000f0292f1ee509c2 Issue introduced in 6.9 with commit 2f2cc53b5fe7022f3ae602eb24573d52f8740959 and fixed in 6.13.5 with commit 47ae46ac5407646420e06b78e0dad331e56a4bb4 Issue introduced in 6.9 with commit 2f2cc53b5fe7022f3ae602eb24573d52f8740959 and fixed in 6.14-rc4 with commit e49477f7f78598295551d486ecc7f020d796432e 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-21849 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/gpu/drm/i915/gt/uc/intel_guc_submission.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/2bf1f4c129db7a10920655b000f0292f1ee509c2 https://git.kernel.org/stable/c/47ae46ac5407646420e06b78e0dad331e56a4bb4 https://git.kernel.org/stable/c/e49477f7f78598295551d486ecc7f020d796432e