From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 51CE130AAA6 for ; Wed, 24 Jun 2026 16:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318727; cv=none; b=SvnMJl0OCWPr0ssSEp5VnPHVHvD/3U2KmfGGVopzggATcn9EHjV4cdCARm4BqMia8wM4W9dpMP2uTdrkCLY6gVC5Ujo+ruuKYx1wSvphoIvm7F3jCpI59ZNNXLwgLoA0xTrjwSowmY9vuHq1a90FKZFkRG0kus+dCTdoKOz4POw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318727; c=relaxed/simple; bh=QEefEMKlLH2dH1ce+KlB6QetYtZBDddGzNJnmA6DLIY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SOmmF7wbubTiN9j/QWgMK0PLcURzx9o5iATvB2/HjoTOMamZEKHNlAsW3jjpKx6OuQ0flgsz6jwGnLfj+2h9MekGGMDXp5cb4Qd0VIRJDQuv+kdWm6IUkJMW9eN8pduoJIQGUaLfDyDsxrOvtC9py8QWCPlJi86+FjEh2wTGScU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i6YCMNKg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="i6YCMNKg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A44F1F000E9; Wed, 24 Jun 2026 16:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318726; bh=TO7QV1PGzscpjuDtExWqm4J74TaPDUw2RWlCdj16HdY=; h=From:To:Cc:Subject:Date:Reply-To; b=i6YCMNKg9qGspX+2Qi2YtxBatCSKnMKIqbN9pd8pRD6uLnh57YSR2oa7aRVkSFa1A xM+hbsbLoy2dChL7QaXl8J8x88w1ksbtmly5E/C4x7JPPDxiHiDrTqY18y9IjEoySq PB+XJD2GqX5wCSWEc5iztF4z1wCOYuJOUvD02/2I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52950: drm/xe/dma-buf: fix UAF with retry loop Date: Wed, 24 Jun 2026 17:29:34 +0100 Message-ID: <2026062433-CVE-2026-52950-9c1a@gregkh> X-Mailer: git-send-email 2.54.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=2358; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xdbtnsba55o9uj2OFu6IgFL/10uubmKHBnbhj9MPFAM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rO9efOP47KnYfelHTdvBu2IKHyU3SMTtvM+Ww/t86 bLw6MhNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRSUwM8xQqajyu/l15aw7f tzffzZdKHjzwOYRhrniu9J9p4R3HdwUo9bq6a8j+CrOyAQA= 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/xe/dma-buf: fix UAF with retry loop Retry doesn't work here, since bo will be freed on error, leading to UAF. However, now that we do the alloc & init before the attach, we can now combine this as one unit and have the init do the alloc for us. This should make the retry safe. Reported by Sashiko. v2: Fix up the error unwind (CI) (cherry picked from commit 479669418253e0f27f8cf5db01a731352ea592e7) The Linux kernel CVE team has assigned CVE-2026-52950 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 and fixed in 6.18.33 with commit 39fdac6be02eb7c3460518c1c4085f75f935c4ce Issue introduced in 6.18 with commit eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 and fixed in 7.0.10 with commit 827062952ed9bdf4220466c1f05ce452d04bdedf Issue introduced in 6.18 with commit eb289a5f6cc668853f9b2ea6aca04afe58ed11c7 and fixed in 7.1 with commit 155a372a1cc50fa93387c5d3cdfd614a61e1afd1 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-52950 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/xe/xe_dma_buf.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/39fdac6be02eb7c3460518c1c4085f75f935c4ce https://git.kernel.org/stable/c/827062952ed9bdf4220466c1f05ce452d04bdedf https://git.kernel.org/stable/c/155a372a1cc50fa93387c5d3cdfd614a61e1afd1