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 580D9258EF1 for ; Fri, 22 Aug 2025 16:04:16 +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=1755878657; cv=none; b=Caz17oscG/krWOwpiZ/fcsd1/YVYHEvJ996x+2nGYdSY9TKNm4rCGSzKXvpJylQ4YntJdEZ6PDWPo+t7drLAnEktDGPNIZ/ui++QqEubM/BFxBI9nMh+/YjZbQ0KtMopEHf3ygmrM9mA+GgyYkSS46K5ODI1V4EiMPA3WX14Ok4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878657; c=relaxed/simple; bh=wFmwA5mgew/9LVVwe2Rc+sxUc4SOOnr0W2PAhF97E3E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tWGMk1oXSC+gL4adMNgQ2newEoRTgQIiqka+spfQzGlDcOyB2pbs3oQZg9nTh37IPnhP/eEMufibezfi3oB+EUuZKgeQuWwsmmy1prvpNlCwQLypYxUHxj1yDw4KAHhEEV5ZN0fmph8W/9sxzF0RpZesj36jaHa4S/xmOI5Pq0c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jmXtMqhB; 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="jmXtMqhB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B7EDC4CEED; Fri, 22 Aug 2025 16:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878655; bh=wFmwA5mgew/9LVVwe2Rc+sxUc4SOOnr0W2PAhF97E3E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jmXtMqhBh9ILJj+PZJlUeABLg+4F8LIHFDskBcsCJGDXwHRpMo1M0at7tIDx1Onbl OcE8ko9ZkoFDDRcnICk/pGBQMTXzp93E5uKwg2/aSHIQ9nVqziQtGpsl5fUd1MiXJm es69/1tayHVyPTwWtOdgHfEqEDI+5K1bs+1MbWzY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38672: Revert "drm/gem-dma: Use dma_buf from GEM object instance" Date: Fri, 22 Aug 2025 18:03:09 +0200 Message-ID: <2025082201-CVE-2025-38672-f53c@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=2471; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TkopwUQZI/KwP43rNbVXfh6PoZt1GmYVL/5/o/Sb+8s=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpmz9kWgptSYjvObgszuLNb03XJv6WPJz7g3mqQ75R 17xeP443BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATMTJlWHDmjKHtY94tbF3P q2+X7DrvGZoguJthfvT9t5/+/hG4ueTpmX/n3gV47dJRuQEA 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-dma: Use dma_buf from GEM object instance" This reverts commit e8afa1557f4f963c9a511bd2c6074a941c308685. 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-38672 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit e8afa1557f4f963c9a511bd2c6074a941c308685 and fixed in 6.15.9 with commit e7bdb3104a2f71ec1439d37f8e6e2f201dbcd7cf Issue introduced in 6.15 with commit e8afa1557f4f963c9a511bd2c6074a941c308685 and fixed in 6.16 with commit 1918e79be908b8a2c8757640289bc196c14d928a 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-38672 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_dma_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/e7bdb3104a2f71ec1439d37f8e6e2f201dbcd7cf https://git.kernel.org/stable/c/1918e79be908b8a2c8757640289bc196c14d928a