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=1795154520; b=I3TSVX5eU6jrHL6rvxPoHk4qIyDuXrdLWruVBJiFOUB7YpeRrmJeqwcd2zassoifXCJD XnErY/UPaItFqq1aad1Ndq2X/PmlSeiA867DQXWGUNIWvQqGvUjjK7HYrzTwPs/138sNl sXRO+2H1M/ihpZkS5l020y/KAAOm3fiQYEu4va7Pf7EJGd2oss0gCx8kaJMyQOPwEPyoA kTk71tZ3P800yyvHQzdR4L47Dnz27fNoRGPqe0F9GhumTSdrjJWcp8WQTOFP94P4MigDI NTejJnWavmRks2svWs4Vb+lfLn9D333rAyvldjF2kJ7F/t2mFzoYUVOf93A6Bpzm/iA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154520; 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=8dH9Z//d2meHT3KeWcEBYZH+NGCxljzao9QsWjNV2Tk=; b=T2eovlwIrljjGa+3oDSdKdAqlvQaJahH9fyy3LxV0hJxh0FdMu3qNo120kFEVPENCtW7 ZJ8OQchL7WhH8mc0nb95PYnW0eI5I1rh8xXSNOpdHJwjQUIXdOR6DJVyLj5vBkZ/MTqwl lrIW34cYBxqOUvLnmnSDxykV7QBB1x/FpFv01ORFHxT91R+6feU7uLnBW8nPMvHBuOXmm /ZrB+Wts3l5ibl2U+Os1YgzmYSnuvtCvIgBDrqplQiJ3kafqm7N/bUOSRP5xXyDGljlxX m45V1GUtvaddueW8SkZVK89wWIHYZjp6tfWKSfTqVZpS/zcdwqN2DF/mp14ejiTRqyg== 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=HAJ9Nt7k; 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 BE695606A52A for ; Fri, 20 Nov 2026 06:02:00 +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=HAJ9Nt7k Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD8191F000C6; Fri, 20 Nov 2026 06:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154520; bh=8dH9Z//d2meHT3KeWcEBYZH+NGCxljzao9QsWjNV2Tk=; h=From:To:Cc:Subject:Date:Reply-To; b=HAJ9Nt7kdaBYBH0vDfBhcfuE/ZFkV2fzwCEDDDG1rCeROILu/vBilp42wFVxY1Ab8 80b79MdmKCHk6EyzAS6s6Ttp/UTE5+EJimJZuUDZMBRs17+nyQ10h47fM7sjW/f3jW mKV/SDBoqs5aG3FuxNKM1xhMHhcztrEnPzTFiFHE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99773: drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind Date: Fri, 20 Nov 2026 06:52:39 +0100 Message-ID: <2026112029-CVE-2026-99773-1cbf@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=3922; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UkmfzfoiwLb5zDE2uST7lElg94Eh2e8kyBglb7htAl0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7y/9vlvz6bnFf6YrPMh/Xd8l/Ot2M8vruDSpjed8z j9O//daoCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmsu82w4K+Qybqm+d/NGkO jH4iEfe8fkrwz18MC+aoRZj3fquIZ98pJt5nxt6VP/GINQA= 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: ensure dma_fence_ops remain valid during device unbind In [1], sashiko reported the following issue: === snip === Looking at how these fences are managed, drm_crtc_create_fence() creates a dma_fence without taking a reference to the drm_device or drm_crtc. Because the sync_file framework exposes this fence to userspace, the fence can outlive the CRTC. The dma_fence contract requires that data accessed by dma_fence_ops (like get_driver_name) must remain valid for an RCU grace period after the fence is signaled. However, drm_crtc_cleanup() and the subsequent freeing of the device do not wait for an RCU grace period via synchronize_rcu(). If userspace calls ioctl(SYNC_IOC_FILE_INFO) concurrently with a device hot-unplug: CPU1 (Userspace) sync_file_get_name() ops = rcu_dereference(fence->ops); if (!dma_fence_test_signaled_flag()) // Preempted or delayed here CPU2 (Driver Teardown) Signals the fence (setting fence->ops = NULL) Destroys and frees the CRTC without waiting for an RCU grace period CPU1 (Resumes) ops->get_driver_name(fence) -> drm_crtc_fence_get_driver_name() crtc = fence_to_crtc(fence); // Casts to the freed CRTC return crtc->dev->driver->name; // Use-after-free ... Does the CRTC or DRM device need to be kept alive for the RCU grace period, or should the fence hold a proper reference to prevent the use-after-free when get_driver_name() and get_timeline_name() access the freed CRTC structure? === snap === I believe this to be a correct observation and this patch implements the suggestion of waiting for an RCU grace period before proceeding with destruction of the drm_crtc, so that get_driver_name() and get_timeline_name() can still work. The Linux kernel CVE team has assigned CVE-2026-99773 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 and fixed in 6.12.118 with commit dd9a96b2271e28340acf2e3764914fe5f32f6102 Issue introduced in 4.10 with commit 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 and fixed in 6.18.64 with commit 07b2d7a3f2b984c20f5f2630a94f43ede387a8dc Issue introduced in 4.10 with commit 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 and fixed in 7.3.5 with commit f8e6f4deb868fd9da3eda95db222609ab1edc18d Issue introduced in 4.10 with commit 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 and fixed in 7.4-rc2 with commit 3be436cbd3d265fe4fcfbb5b650edad7b2108443 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-99773 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/dd9a96b2271e28340acf2e3764914fe5f32f6102 https://git.kernel.org/stable/c/07b2d7a3f2b984c20f5f2630a94f43ede387a8dc https://git.kernel.org/stable/c/f8e6f4deb868fd9da3eda95db222609ab1edc18d https://git.kernel.org/stable/c/3be436cbd3d265fe4fcfbb5b650edad7b2108443