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=1795154512; b=gVEXSrgPb6rtNrFLqmRuXqRiIJt024SgzT9qaeDE+DS2jVnJ0234h94SEodZPt8XMnZk 2GZd6+KdqtRRR+dfFLsPnotZGUJgW0Gq/Ls3qR2UNVuxwT8VEPJ6/bhbrnYZ67fC0IrCN YIzVbNvD1KxmUd1sK7yIx/qP+LvfAk1OOf41dvVDj09qzW7Aic8rY+30AR4aixX0zezzg gdo0P0Fa91XfBNu2nkTu6AJPan24iIWN9YdRhroNYZj5cgdijX26Gn/OYd0c7DspXmRhU 7q4yI35ygJnTl2I/MeiZ4e1vd69B4YRZAwpSHZCmfFixgWpNPHfL4smky/JEf1n9uKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154512; 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=sRDS1AcJCoPvRlKG9H/ettWTxQdXUlEyet3gS9pzNGI=; b=XWJqfBWCUzmF1loJEwbbLnyzadu1ldYEKXCIma9xhZtUv4Lg0VfHxRbbMrhG0zFaAGER MZQtGym2+kqvP/raMUOVkGlMP8jKjzbSuKWYHlQqPkAHvHHMwgr7BoJz6+4XCrgkQVQDZ rfdj/FcJL10Tuqnfb2IGZ+e4S4pzw41/2T9csJD4JC6g0u6/7sTpnlveqLV8GKXAxz6cu PNtJJGo+yfJLpNoLz/43Ah60nB0DmhtaKVTvhxjkFL7wjGDAqBKCylK7YGbDGb3wldLNG b4hwO1iguov0liDZmStkGTdQ+8w59dleeZGR08BJmu30XlEisRwuCHCr8V54oNF8VvA== 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=O7OkBbJk; 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 1EFD2606A32A for ; Fri, 20 Nov 2026 06:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=O7OkBbJk Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A4561F000CA; Fri, 20 Nov 2026 06:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154511; bh=sRDS1AcJCoPvRlKG9H/ettWTxQdXUlEyet3gS9pzNGI=; h=From:To:Cc:Subject:Date:Reply-To; b=O7OkBbJkdQaxcuOQvi+/KCekhd2KbaKxFi5ZTaxhKjnAMfTqjbmgciCJZ8jR/JUIG F1iOZRDgIyurEFoVpClnUqlSlgSpZt2W04iB2hG1idfglMY9ag4sR7bS5iz8Eh1DiF Spq5WLjwy2sfwhfwsU1J/TFlhQzd2fuwrCevwQTI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99770: drm/vc4: Publish the output fence outside of job_lock Date: Fri, 20 Nov 2026 06:52:36 +0100 Message-ID: <2026112028-CVE-2026-99770-a7f3@gregkh> X-Mailer: git-send-email 2.56.1 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=4119; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xrtNbNOyAGyqzgj99c15RCQwSSlMGgqEQtJPuX0z3zo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7y852/eFfWnGbA2ljJa3H/xmLT/fMKc1Sar5TuaNm akm77Yod8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHLkYFkxyb7SZLdhyzn2q gLPoznNSZt+3z2CY7/jnlHNrgClDZr/77neFgTFSLma8AA== 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/vc4: Publish the output fence outside of job_lock job_lock is taken by the V3D interrupt handler, so nesting an IRQ-unsafe lock under it creates an inversion. drm_syncobj_replace_fence() takes drm_syncobj::lock, which other paths acquire with interrupts enabled. For example, a thread interrupted while holding it blocks the handler on job_lock, and the handler can only make progress once the submit path releases job_lock, which it cannot do while waiting for drm_syncobj::lock. This is reported by lockdep: [ 188.139076] ======================================================== [ 188.139086] WARNING: possible irq lock inversion dependency detected [ 188.139096] 7.3.0-rc3-00067-gc4f3feeaf60f #67 Tainted: G C [ 188.139108] -------------------------------------------------------- [ 188.139116] swapper/0/0 just changed the state of lock: [ 188.139125] ffff0000054f8ff8 (&vc4->job_lock){-...}-{3:3}, at: vc4_irq+0xa8/0x28c [vc4] [ 188.139234] but this lock took another, HARDIRQ-unsafe lock in the past: [ 188.139242] (&syncobj->lock){+.+.}-{3:3} [ 188.139256] and interrupts could create inverse lock ordering between them. [ 188.139267] other info that might help us debug this: [ 188.139275] Possible interrupt unsafe locking scenario: [ 188.139284] CPU0 CPU1 [ 188.139291] ---- ---- [ 188.139299] lock(&syncobj->lock); [ 188.139312] local_irq_disable(); [ 188.139320] lock(&vc4->job_lock); [ 188.139335] lock(&syncobj->lock); [ 188.139350] [ 188.139358] lock(&vc4->job_lock); [ 188.139372] *** DEADLOCK *** Hand the fence over after job_lock is dropped. The job can complete and drop exec->fence in that window, so take a reference first and publish through the local pointer, as exec may already be gone. The Linux kernel CVE team has assigned CVE-2026-99770 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit e84fcb95e07442edd7ce3b13973523646dbc581a and fixed in 6.12.118 with commit 54c219a3de9439fa003b45500a7ea3ad5e2eb6a9 Issue introduced in 4.18 with commit e84fcb95e07442edd7ce3b13973523646dbc581a and fixed in 6.18.64 with commit ceee27de7b9d8e9771c8ebda48b6836aa2c4466b Issue introduced in 4.18 with commit e84fcb95e07442edd7ce3b13973523646dbc581a and fixed in 7.3.5 with commit e16cc0843946e998b6dc6c4b41fee8d9e324ccec Issue introduced in 4.18 with commit e84fcb95e07442edd7ce3b13973523646dbc581a and fixed in 7.4-rc2 with commit 9ee552a42c3905b4547e83173d46413137ec329a 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-99770 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/vc4/vc4_gem.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/54c219a3de9439fa003b45500a7ea3ad5e2eb6a9 https://git.kernel.org/stable/c/ceee27de7b9d8e9771c8ebda48b6836aa2c4466b https://git.kernel.org/stable/c/e16cc0843946e998b6dc6c4b41fee8d9e324ccec https://git.kernel.org/stable/c/9ee552a42c3905b4547e83173d46413137ec329a