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 8913437D132 for ; Tue, 16 Dec 2025 13:44:35 +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=1765892675; cv=none; b=SnMCdkssareU2qVbHUn0MKkAw96+pKs8IK5Wv/Svq49YM+m3b0k5pAxDWRCBxkpypaYsqQJ/t4G2BQ3ViPNEmxEYuPqvWjcxHbmj3JmmQejPiqVciLwe+nSF8qvrm4ID11sANVqlTboVTJRwbPY9FWy84J4Ggfe0gTQ1LC1jZq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892675; c=relaxed/simple; bh=bpMkKXkBYuNW875finrqMVSmU0dliNRqKYTGGaVWQVA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NqHNYlzAQ5LQUT3dh0/USh9SklbOMIuwHldNUW7Jj7AFhBp6EJYf2IAqPMmCY6u88bCU8mFXIjWCelsz2RM6GLTe1Ns94D3x5ULk0Liz6icUSk9UDKKbvt54i5ld4W4aTgmIZ/shkeTZy0dgBsEzVIGKqVvQjc9UgAHIV8hw6uQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U7uVJEmT; 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="U7uVJEmT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BCBAC4CEF1; Tue, 16 Dec 2025 13:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892675; bh=bpMkKXkBYuNW875finrqMVSmU0dliNRqKYTGGaVWQVA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=U7uVJEmTQZuIRSPZBGf5IZi83I4E16YitpGKG4szD8oKmw/8S47k430svMR0rj1Bl FY573/OnbPOXIfKDytNFfCArsAugcs0HQZxrrR24w1oq21ADUwcX6CF2P9q1DA4W+r Dpw/36DAMxJA+b9mRTUeEngKCm4LCm51n7EoQOM4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68189: drm/msm: Fix GEM free for imported dma-bufs Date: Tue, 16 Dec 2025 14:43:50 +0100 Message-ID: <2025121634-CVE-2025-68189-c9b6@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3863; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AyEnw2rH1Q2vhkpdtDryUf8j+GQpNPRV5bUlCUC68lQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSWzf/C91rVr4urH6e4Harnuz2bIizvHu1/+aNcVrZ 6DP2ddBHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3maGeYr3c147Pn60M7ap vSHYKNf4RPo7KYYFDak6Fzf9va7I1Xakyyrn3QwNr6NXAA== 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/msm: Fix GEM free for imported dma-bufs Imported dma-bufs also have obj->resv != &obj->_resv. So we should check both this condition in addition to flags for handling the _NO_SHARE case. Fixes this splat that was reported with IRIS video playback: ------------[ cut here ]------------ WARNING: CPU: 3 PID: 2040 at drivers/gpu/drm/msm/msm_gem.c:1127 msm_gem_free_object+0x1f8/0x264 [msm] CPU: 3 UID: 1000 PID: 2040 Comm: .gnome-shell-wr Not tainted 6.17.0-rc7 #1 PREEMPT pstate: 81400005 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : msm_gem_free_object+0x1f8/0x264 [msm] lr : msm_gem_free_object+0x138/0x264 [msm] sp : ffff800092a1bb30 x29: ffff800092a1bb80 x28: ffff800092a1bce8 x27: ffffbc702dbdbe08 x26: 0000000000000008 x25: 0000000000000009 x24: 00000000000000a6 x23: ffff00083c72f850 x22: ffff00083c72f868 x21: ffff00087e69f200 x20: ffff00087e69f330 x19: ffff00084d157ae0 x18: 0000000000000000 x17: 0000000000000000 x16: ffffbc704bd46b80 x15: 0000ffffd0959540 x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 x11: ffffbc702e6cdb48 x10: 0000000000000000 x9 : 000000000000003f x8 : ffff800092a1ba90 x7 : 0000000000000000 x6 : 0000000000000020 x5 : ffffbc704bd46c40 x4 : fffffdffe102cf60 x3 : 0000000000400032 x2 : 0000000000020000 x1 : ffff00087e6978e8 x0 : ffff00087e6977e8 Call trace: msm_gem_free_object+0x1f8/0x264 [msm] (P) drm_gem_object_free+0x1c/0x30 [drm] drm_gem_object_handle_put_unlocked+0x138/0x150 [drm] drm_gem_object_release_handle+0x5c/0xcc [drm] drm_gem_handle_delete+0x68/0xbc [drm] drm_gem_close_ioctl+0x34/0x40 [drm] drm_ioctl_kernel+0xc0/0x130 [drm] drm_ioctl+0x360/0x4e0 [drm] __arm64_sys_ioctl+0xac/0x104 invoke_syscall+0x48/0x104 el0_svc_common.constprop.0+0x40/0xe0 do_el0_svc+0x1c/0x28 el0_svc+0x34/0xec el0t_64_sync_handler+0xa0/0xe4 el0t_64_sync+0x198/0x19c ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ Patchwork: https://patchwork.freedesktop.org/patch/676273/ The Linux kernel CVE team has assigned CVE-2025-68189 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit de651b6e040ba419418a37401e45d24f133e8a59 and fixed in 6.17.8 with commit 9674c4cb2fe62727a2e4d3f66065ab949dfa61be Issue introduced in 6.17 with commit de651b6e040ba419418a37401e45d24f133e8a59 and fixed in 6.18 with commit c34e08ba6c0037a72a7433741225b020c989e4ae 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-68189 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/msm/msm_gem.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/9674c4cb2fe62727a2e4d3f66065ab949dfa61be https://git.kernel.org/stable/c/c34e08ba6c0037a72a7433741225b020c989e4ae