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 1EE4C16D9A7 for ; Wed, 21 Aug 2024 06:14:02 +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=1724220842; cv=none; b=Nx6O+YLC4X+3+KwXWo+aKTtPKb68fSGOu8vLbLbirtepV7t3MRViUUnwL4ryaX0kVO7dUaf5ZnPUKW1Z499toyP5084fjM90DKFHkrDhhSEIhzcy5JHJ/cgVH+1OM04JzzgmeXKyIn+roQ5rVjAQSkXmKXHY4+M70tTaW42iwKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220842; c=relaxed/simple; bh=CxHNN/D81IwYL50K40pvVNjrJvux/icvQgxTx4P/69I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ztsqcp+xzR8DRN9CZakXA90+QIL8qrvpNofcELaWCjDwnyALYDmhu+ohcnmultWiYDSnrHwSte0XE+A31AlXtwleqylGFW+ohZJZcBhxhgRiglL6lEWqH+9Z9KM5HKVcL0PRmpzBzf3wk7W3NVFdLYAbx9jPY1dN8xnnnhFCmJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0ANbESOE; 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="0ANbESOE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A682DC32782; Wed, 21 Aug 2024 06:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220842; bh=CxHNN/D81IwYL50K40pvVNjrJvux/icvQgxTx4P/69I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0ANbESOEzw7X96/A4hNBVqF5URmaRdN4Q3ANhJ/g/TM/fcxQTTJK1j+GRXqS4KjDV Wuc6+O0qPjgSogkH3mPCucYx83nHYzA6A7vtJHDj8EoKPSAYlN9SdeYlZZTACRkVXD z4A3h+tysdD80QROCTugxGs2pWAzDq57QxAoSDno= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52913: drm/i915: Fix potential context UAFs Date: Wed, 21 Aug 2024 14:11:54 +0800 Message-ID: <2024082115-CVE-2023-52913-5347@gregkh> X-Mailer: git-send-email 2.46.0 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=2163; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CxHNN/D81IwYL50K40pvVNjrJvux/icvQgxTx4P/69I=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW5mFttW/VLwf8O38h8NKQSL/qs5M7iqW5jvI7uq66 Ue77drpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARLj6GBRsDd1Y2sXDGr715 t7xQ7HH/DsHdzQwLDoTc/Lzxy31vZW5OiaX78m64TNh8AgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/i915: Fix potential context UAFs gem_context_register() makes the context visible to userspace, and which point a separate thread can trigger the I915_GEM_CONTEXT_DESTROY ioctl. So we need to ensure that nothing uses the ctx ptr after this. And we need to ensure that adding the ctx to the xarray is the *last* thing that gem_context_register() does with the ctx pointer. [tursulin: Stable and fixes tags add/tidy.] (cherry picked from commit bed4b455cf5374e68879be56971c1da563bcd90c) The Linux kernel CVE team has assigned CVE-2023-52913 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit eb4dedae920a and fixed in 6.1.7 with commit b696c627b3f5 Issue introduced in 5.10 with commit eb4dedae920a and fixed in 6.2 with commit afce71ff6daa Issue introduced in 5.8.11 with commit cb7a0e1d8eea 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-2023-52913 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/i915/gem/i915_gem_context.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/b696c627b3f56e173f7f70b8487d66da8ff22506 https://git.kernel.org/stable/c/afce71ff6daa9c0f852df0727fe32c6fb107f0fa