Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758874; b=AAkT86kcGZZntWM+clmOmOgfKR5AlfTPLXsmxe5tHtr/lOgi/vXmQeUVfweKIJxte6z4 cL6o7kNZsOO0zWK56yAxiatKXysNeB9RUwLLRbg4ua5/Qcw65KiH9MBileLLsT9QhjaE6 pPLWYPxD57c9ylenwO95vOmwYo1Bjaz0az2DDbD8Ec2MmLfJisb8V9XyTe2vWu2X2uZES Qwl5Jj2p03tLiUve4+YCbjrYaXi1hT/KXbtsV+WR2dmXeMFSp8L2/h6FpDr145lberq5S 62PdTskg/IlhLDHcSjOE6FW3sCmB+dcOxMKJc8tCp8a7gVz6h0hKxOB6uu+1JIPdlJQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758874; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=2pPjXfgs//PbzAmvolZLx984rfoOG34vr5G3f3aMJ8g=; b=io+tdlWypMBJju1A2AUklifi2GdROl1iTt+0IpL/XWxSnNbfgw7KBjQjPl/Z6ULP2+8+ T6XFRSritT/+FC257QyG7FzwTELMRHqc8c6dCH7O8BtgGs+lLr12pTXiXJjGw3txVXewr 6kuON1bUOD7CWx/N2Nk5sgfdGFhTDMHufzAaS+JiMEakFs0v3t1yhjHWBQGCyqzphdYNN XMN1QyvPE63C9F/HCnDJk8xcnnn6SQE+JiKQFcBSGrLO9BjIIEV8WLU+e79bOPkAU7EjZ XrynPZCJ8ZCoCAirAUWGLHhsdxvtXvvho4OIsjxaugrkqIu1iRaC6y/r4eC2kM6rqgQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=f8bM6I4s; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC58E606A31A for ; Fri, 23 Oct 2026 12:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=f8bM6I4s Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F3FA1F01825; Fri, 23 Oct 2026 12:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758873; bh=2pPjXfgs//PbzAmvolZLx984rfoOG34vr5G3f3aMJ8g=; h=From:To:Cc:Subject:Date:Reply-To; b=f8bM6I4s69iB+qUiIZz0+YJm4Myn8b6/W+NOaYQtsz9hfrkPU6GNgTJ7jx5jpsNB9 tIkFogvuKcWsgVfCJq+FWKtb7uwhIDcwkYcWXZOQ/gcUJf1koKjs52DDAUDc2HaZhR Ot6vJf0r1ymgl58tTkE8zceLx3YTGhoXDLcn58HY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99005: drm/i915/gt: Unmask interrupts only when ACTIVE is true Date: Fri, 23 Oct 2026 14:20:07 +0200 Message-ID: <2026102318-CVE-2026-99005-f377@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6043; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gKn2sveMT2CXCqQZBRW0GsLlrFK9nsucDTQv2PJYLSM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A44d/fs3YpXclwZ2PyvvBUWJIi0Lemcl62hvtBVP0 pgof7W2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyT4JhnoW9i//X+x8Or3EQ fvbErcBFbumeXIYFc51P5dW83dbsqChSZK4dv2p1oXUxAA== 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: drm/i915/gt: Unmask interrupts only when ACTIVE is true There is a small race window between intel_rps_boost() reading a stale ACTIVE state and queuing rps->work, where ACTIVE may be changed via asynchronous calls triggered by wakeref drop. This means that rps_work() could be triggered after the GT has been parked, so unmasking RPS PM interrupts would happen without holding PM wakelock. This sequence of events may be observed during live_rc6_ctx_wa() selftest: 1) live_rc6_ctx_wa() -> intel_engine_pm_put() -> wakeref_put() ASYNC1) wakeref_put() callback -> __engine_park() -> intel_gt_pm_put_async() -> intel_gt_pm_put_async_untracked() -> intel_wakeref_put_async() ASYNC2) wakeref_put_async() callback -> __gt_park() -> intel_rps_park() -> intel_rps_clear_active() [clear ACTIVE] WITH INTERRUPTS: -> rps_disable_interrupts() -> cancel_work_sync(rps->work) -> rps_reset_interrupts() [rps->pm_iir = 0] WITHOUT INTERRUPTS (TIMER mode): -> rps_stop_timer() -> cancel_work_sync(rps->work) 2) live_rc6_ctx_wa() -> intel_gt_wait_for_idle() -> intel_gt_retire_requests_timeout() -> dma_fence_wait_timeout() -> ops->wait() [i915_fence_wait()] -> i915_request_wait_timeout() -> intel_rps_boost() -> intel_rps_is_active() [check ACTIVE] [OPEN RACE WINDOW] -> queue_work(rps->work) -> retire_requests() -> i915_request_retire() -> intel_rps_dec_waiters() [from 1 to 0] If ASYNC1 and ASYNC2 would execute during [OPEN RACE WINDOW], then: 3) rps_work() executes from the workqueue and may satisfy "(!pm_iir && !client_boost)" test (in TIMER mode rps->pm_iir is zeroed by an earlier rps_work() call or never gets a new value after previous intel_rps_unpark() event), so it jumps to "out" label, bypassing intel_rps_is_active() guard and executes gen6_gt_pm_unmask_irq(); 4) GT is parked and runtime PM wakelock is dropped, so only a raw reference in __gt_park() -> intel_display_power_put_async() remains for 100ms, then the MMIO write in gen6_gt_pm_unmask_irq() detects missing wakelock via assert_rpm_wakelock_held() and emits "RPM wakelock ref not held during HW access" tainting kernel. Commit 3e7abf814193 ("drm/i915: Extract GT render power state management") dropped the "if (rps->interrupts_enabled)" guard that gen6_pm_rps_work() had around this unmask in i915_irq.c. INTEL_RPS_ACTIVE brackets the same window, since it is set in intel_rps_unpark() before rps_enable_interrupts() and rps_start_timer() and cleared in intel_rps_park() before rps_stop_timer() and rps_disable_interrupts(). Skip unmasking when RPS is no longer active (reaching unmask operation is independent of INTERRUPT mode). This does not prevent RPS operation from resuming on the next unpark. In interrupt mode, intel_rps_unpark() calls rps_enable_interrupts(), which enables and unmasks the PM interrupts. In timer mode, it calls rps_start_timer(), restarting periodic engine-busyness evaluation. The timer generates software RPS events and queues rps_work() directly, independently of PM interrupt delivery. Neither mode requires the late worker to unmask interrupts while the GT is parked (cherry picked from commit ca4a6deadad15b91ee083afe445fa6bdbfb68206) The Linux kernel CVE team has assigned CVE-2026-99005 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 3e7abf8141935ded77abeb622480bf4a14241ece and fixed in 6.6.160 with commit 77abc1837c9651c8f43f7f7f336d10093eeb7745 Issue introduced in 5.5 with commit 3e7abf8141935ded77abeb622480bf4a14241ece and fixed in 6.12.113 with commit 60f58da15f8c8e39706c564f9251de3626636dce Issue introduced in 5.5 with commit 3e7abf8141935ded77abeb622480bf4a14241ece and fixed in 6.18.57 with commit 0b4a0fb98b9ffeac36798bbd369c821605cae70f Issue introduced in 5.5 with commit 3e7abf8141935ded77abeb622480bf4a14241ece and fixed in 7.2.11 with commit 49d349c42cf5ebaa878d02699c632c9d883d935f Issue introduced in 5.5 with commit 3e7abf8141935ded77abeb622480bf4a14241ece and fixed in 7.3 with commit 5346b1cec6afa4f9b4b49a9f84e3cfef95a3f7bb 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-2026-99005 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/intel_rps.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/77abc1837c9651c8f43f7f7f336d10093eeb7745 https://git.kernel.org/stable/c/60f58da15f8c8e39706c564f9251de3626636dce https://git.kernel.org/stable/c/0b4a0fb98b9ffeac36798bbd369c821605cae70f https://git.kernel.org/stable/c/49d349c42cf5ebaa878d02699c632c9d883d935f https://git.kernel.org/stable/c/5346b1cec6afa4f9b4b49a9f84e3cfef95a3f7bb