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=1795154517; b=1yLc/+xHndRyIg+tKW9Dgmyqeac4SvEYCowrpctT5f6Ep0WxM0SPJwWOCJZ4kyMYZwuk MjCl/xzP1e+bBnOWW7W5JtzUTZSSRd++agt7xuq4VoytaX7dS0lCRcsqofwT01LdwRfyx WXS2Hp41wwbMLBlHi6fimUs0PRXRzlpolk+xvtgCVg/PcabMjl68A8fDwlAlFDydEA77o DtMTrSSeGaM/DyCG97/RTRQiSJ4lOwTEYZrPle2UZ9hy1E4imKp5FLIOoVCt56b0Win7i I8u8gLUEmWM7CSw75N3gONhxVTqhNDvl3ECf0mV6pLFB6Uc41cQr673YMXK8GY2prLQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154517; 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=I6Yh1XL9mzh+HTQcirTmb0iqRLMFfC/8rYItYdtmROs=; b=vGEfKAqfdqVBI5DakhPqLQ8MoKZCm3yUaazjdFTiSaHDWioPTQS6DH/hkKmijoeiJS+W YTKd7yZfvlV0E9XFSOofcd4vFRQxGdPINW2Y/jaMTR5l9sDmTqbBoq9rOFqX6XgZ8yCBs A9Y0L1wD5V3O6wbrMXzpFCtnVnkT1QPhSw2aEktfvwX2UAKcAyV/Ak14uVf+YlNtD4rHp Dm6UrP/OrarBdsVDJONRoDPHguT7oxynp2w8zx5S5z77enmyzld+70HKPvVgVTWfmSwm2 W1mT4rvfFGP2GeQoLpyif/+h5l0k+XEZpT5eMlznkVmb3l/etL5iwSbXWolWBA2Y7SA== 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=RamlIujf; 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 C4620606A518 for ; Fri, 20 Nov 2026 06:01:57 +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=RamlIujf Received: by smtp.kernel.org (Postfix) with ESMTPSA id D62D81F000C6; Fri, 20 Nov 2026 06:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154517; bh=I6Yh1XL9mzh+HTQcirTmb0iqRLMFfC/8rYItYdtmROs=; h=From:To:Cc:Subject:Date:Reply-To; b=RamlIujfsre+ZU+tt4XyfsEOjuCTHMqNrxQP8trfM0AfdBMT3dywcMqguuSYoJQ0B cBk1oUEzqvM3gCWHKnzaDIVHJRMUCn2b2aLvtkO/0Tp4PapcUzRUAf1BQiUL33Dzjt ZCBoVAJ2dY5FwSzbniVrbZBPqICuaVLbTKL7hmvg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99772: drm/drm_crtc: fix race with dma_fence_signal() in ::get_driver_name() Date: Fri, 20 Nov 2026 06:52:38 +0100 Message-ID: <2026112028-CVE-2026-99772-88e8@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=3804; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Lxw2h0oDAATrs9yK/XLRZpyaWMei3u1q3XSJUMeHqd4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7y/9d2Kt3NVlxQXv3pT8ElS/KBaz5aWjU63TrZKTD d8Pvd0Q1xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATscxjWDDHJLNi6Z3YXbcn s55oXdglNSH15yqG+WGea1gb1N62Bf/hVWb0X9QzTeV5AwA= 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/drm_crtc: fix race with dma_fence_signal() in ::get_driver_name() Since commit 541c8f2468b9 ("dma-buf: detach fence ops on signal v3"), I'm seeing the BUG_ON() triggering in drm_crtc's fence_to_crtc() via drm_crtc_fence_get_driver_name() regularly: Call trace: panic+0x58/0x5c die+0x160/0x178 bug_brk_handler+0x70/0xa4 call_el1_break_hook+0x3c/0x1a0 do_el1_brk64+0x24/0x74 el1_brk64+0x34/0x54 el1h_64_sync_handler+0x80/0xfc el1h_64_sync+0x84/0x88 drm_crtc_fence_get_driver_name+0x60/0x68 (P) sync_file_get_name+0x184/0x45c sync_file_ioctl+0x404/0xf70 __arm64_sys_ioctl+0x124/0x1dc This looks to be caused by a code flow similar to the following: +++ snip +++ thread A thread B ioctl(SYNC_IOC_FILE_INFO) sync_file_ioctl() sync_file_get_name() dma_fence_signal_timestamp_locked() dma_fence_driver_name() ops = rcu_dereference(fence->ops) if (!dma_fence_test_signaled_flag()) ops->get_driver_name(fence) i.e. drm_crtc_fence_get_driver_name() test_and_set_bit(SIGNALED) RCU_INIT_POINTER(fence->ops, NULL) drm_crtc_fence_get_driver_name() BUG_ON(rcu_access_pointer(fence->ops) != &drm_crtc_fence_ops) +++ snap +++ In other words, a fence's ops pointer can now change to NULL on signal, which wasn't the case before the culprit commit and hence the BUG_ON() triggers. Simply drop the BUG_ON() as it's usage of fence ops is invalid now, and because using BUG_ON() and friends to take down the system is an unacceptable way to handle a failure. Note that the adjacent drm_crtc_fence_get_timeline_name() has the same problem and is fixed by this patch as well. The Linux kernel CVE team has assigned CVE-2026-99772 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 541c8f2468b933acc5d129e84bd264923675a66e and fixed in 7.3.5 with commit 84b31b9b294ac2f41fc7720444b9171e62562e6f Issue introduced in 7.1 with commit 541c8f2468b933acc5d129e84bd264923675a66e and fixed in 7.4-rc2 with commit cb104d395da48d965665fefe8502f71b6e7e3733 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-99772 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/drm_crtc.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/84b31b9b294ac2f41fc7720444b9171e62562e6f https://git.kernel.org/stable/c/cb104d395da48d965665fefe8502f71b6e7e3733