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 E10142459EC for ; Fri, 22 Aug 2025 16:04:45 +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=1755878686; cv=none; b=kculLNYZ1LUAXUIP/B/NsuNN/2ja9SQzV3KKCDByT/KEHdWO7y8m+aWBBPzNHwFPTXIc9hJQ6QPMs9iUgRvQYAryLSOmsf6QBG0aOGqUpAtPG8XJqr2zFh0by5QVHJ8nz/SzU8ZCByt3zfzUl9BcQq4V3idxd3vQS4MNGV5+FWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878686; c=relaxed/simple; bh=V6MF7Lw12yjhWsGkjaEH5/FPDkvSF/ngjP71DeUz9Nk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UlABEwuTtZ9nIb6FLItPlml4Q++0O3N7gHAzAnULMXZRkQJRplwlYigp5cPtirnxU2nUg4ugkMVVYRZ8F2XyUEDasUdIWFGpn7LC4WBJ43PkZcpF6ZG0GJZrOI8riAgLTA5MkpTFfLuSn3ihQyrEzpBIc0YWcYT5z3EzX8tlgOo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YnJxRCs4; 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="YnJxRCs4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A6B3C4CEED; Fri, 22 Aug 2025 16:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878685; bh=V6MF7Lw12yjhWsGkjaEH5/FPDkvSF/ngjP71DeUz9Nk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YnJxRCs49P61FTqUM+gaM5HQ5qkz6gNNdMnk/OETlRuZF7nLU1a2dd3wIGwnSYVTJ H0Uf+hn8toBdntT7zaiTxyzogZONWbPrfV285yiPy30Gdca7miwHhMDH1APX7qY3sI Oj5BtBSjD3UkYUZxJ9M0MtQou0/7Go+GZZd4jxJU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38669: Revert "drm/gem-shmem: Use dma_buf from GEM object instance" Date: Fri, 22 Aug 2025 18:03:06 +0200 Message-ID: <2025082201-CVE-2025-38669-d1f0@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=2475; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AENbAaNMa55VhFdq8EuKytklMA3FpXcPrAKHcumVF9Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpmx9vGNSyCrbbTP4Xs9nvtYt9FRdSrqspWqL5GO99 kenTwVf6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJFIcxLJjr82fqWd0FHh9C K/JuGlyqaNDPTWZYcGh6eVOC2Aufx3oCj24HvjBqWHm4AQA= 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-shmem: Use dma_buf from GEM object instance" This reverts commit 1a148af06000e545e714fe3210af3d77ff903c11. 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-38669 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 1a148af06000e545e714fe3210af3d77ff903c11 and fixed in 6.15.9 with commit 291a77604858a8b47cf6640a12b76e97f99e00ed Issue introduced in 6.15 with commit 1a148af06000e545e714fe3210af3d77ff903c11 and fixed in 6.16 with commit 6d496e9569983a0d7a05be6661126d0702cf94f7 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-38669 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_shmem_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/291a77604858a8b47cf6640a12b76e97f99e00ed https://git.kernel.org/stable/c/6d496e9569983a0d7a05be6661126d0702cf94f7