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 D79D4257848 for ; Fri, 22 Aug 2025 16:04:19 +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=1755878659; cv=none; b=SbjGyu1UKLiqooBeaEHJrxHMxUX2a58XlcMWdYD1yqM1wWRZ9cPW5QeWZdqxgxQOyA0+SBg1ZuGV6ge8m72wfgGvqSzoKY0/yr1NBFx38si24wTxFtUk8gN/EyCEas387U1Knpgrnhrnj8m7C5euqCloPETDikeXLKh7S4Y5hAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878659; c=relaxed/simple; bh=CEJF7vUjeemjlUkMyAwDRHbtsweYS++yl21EI3NAcnU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S6Od0KiLULC3A1ejTYbIJ3/BFUMuX3LT/07rkC+Wza4Wa2TYsbNDN4XnojUaef0gwd9TZ+SMre13VuuX9olmMSxsepmPzF5/F3D6TXvA20paaAEHW9rCjD02yxsk126cIcPbPvRDnAcPYQA/fP8klxhJcQ0TY9J3zWAUMYfr6Kk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XCdwu+Hs; 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="XCdwu+Hs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E336BC4CEED; Fri, 22 Aug 2025 16:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878659; bh=CEJF7vUjeemjlUkMyAwDRHbtsweYS++yl21EI3NAcnU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XCdwu+HsoeapAJNEFe3qeC1Hv1mJBD/camrvlz6ZPf1IybUt7MZ4xMb5W1+2PCWOc o9jw7cENlRKE/tG/RDfvV3zjTIDl7OfB4q3aUiAIcMoRW/f2M/j8LTeJwl9LRnekhN 57qj78CRN6BUAI1k4skPOktMSqTij5wo0F64xty0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38673: Revert "drm/gem-framebuffer: Use dma_buf from GEM object instance" Date: Fri, 22 Aug 2025 18:03:10 +0200 Message-ID: <2025082202-CVE-2025-38673-80b9@gregkh> X-Mailer: git-send-email 2.50.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=2487; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ywtlN9ZsFFpjJpvcuEl5I7kRGJ31PmCqc7ojB6XM45M=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpmyb4WXiEn/17AKX0I/8JceKolfUcjttvbUiqDPe8 VLokXshHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRzk6GBYsfrPwvUMN5Pnyx gf+5W1+ybun8ncqwoLO0qnh1wEER8WNhk5bNEIx4frdwOgA= 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: Revert "drm/gem-framebuffer: Use dma_buf from GEM object instance" This reverts commit cce16fcd7446dcff7480cd9d2b6417075ed81065. The dma_buf field in struct drm_gem_object is not stable over the object instance's lifetime. The field becomes NULL when user space releases the final GEM handle on the buffer object. This resulted in a NULL-pointer deref. Workarounds in commit 5307dce878d4 ("drm/gem: Acquire references on GEM handles for framebuffers") and commit f6bfc9afc751 ("drm/framebuffer: Acquire internal references on GEM handles") only solved the problem partially. They especially don't work for buffer objects without a DRM framebuffer associated. Hence, this revert to going back to using .import_attach->dmabuf. v3: - cc stable The Linux kernel CVE team has assigned CVE-2025-38673 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit cce16fcd7446dcff7480cd9d2b6417075ed81065 and fixed in 6.15.9 with commit e31f5a1c2cd38bf977736cdfa79444e19d4005ec Issue introduced in 6.15 with commit cce16fcd7446dcff7480cd9d2b6417075ed81065 and fixed in 6.16 with commit 2712ca878b688682ac2ce02aefc413fc76019cd9 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-38673 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_gem_framebuffer_helper.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/e31f5a1c2cd38bf977736cdfa79444e19d4005ec https://git.kernel.org/stable/c/2712ca878b688682ac2ce02aefc413fc76019cd9