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 1EBEA26F44C for ; Sat, 4 Oct 2025 15:18:29 +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=1759591109; cv=none; b=dYH8MdwZPFTgGnR9k4Ksc7fz2TVcVoGNd0h9/QTINOez1zPNtb04g6YHHv4Vgj23Rglc388SHVh+gZhdoM1WxRBNKrGvEPtqsKyH8n706BypRIq9D8Ixcz3LNKK44w/VGXC4RiE4AreNHtlV/VnddAa+/RDg1rv/9f4V5YaN/Zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591109; c=relaxed/simple; bh=Mc9dVvJZR+Y2G9YXtZD/SJzqFy+rC9tk5pArH9i7F5E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YvYoentnuH7/cfHJ8WrM3ajqGxG6rtFuDDUwRARVIiggQ63jW7GrKdGDfnRXhjZkBt1EEKeseyH8KyWPb7LV4jzTPmp9W2PaaK7p4PcgK6QcOxiSSVkeOJqZw6yutOFdbL8ILa22Z1U0HRJYUV5fzAh0TNN2cOtloKO/q/ixSHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0rUqAtF8; 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="0rUqAtF8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97EEFC4CEF1; Sat, 4 Oct 2025 15:18:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591109; bh=Mc9dVvJZR+Y2G9YXtZD/SJzqFy+rC9tk5pArH9i7F5E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0rUqAtF8kCf3W2rAqFJyhSjKHdUzbgBwO70skWGyTTVaip6MLMpYPSYDRwqEhrdSC ajzt5f7z0PwA0EsvYA1qaK4jC4XRbw3c4jSDG63obMvLWu0McmnsgfrW3BAdE+D+Wi +WbCsH15inT9qooaCqCRdeQlya55QCmqtqWLDUJs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53552: drm/i915: mark requests for GuC virtual engines to avoid use-after-free Date: Sat, 4 Oct 2025 17:17:06 +0200 Message-ID: <2025100447-CVE-2023-53552-5ba9@gregkh> X-Mailer: git-send-email 2.51.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=2669; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=twwRtkmxBOclKbkxttlgJ7SYW44CUgJWXsQyD64aR7I=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPreIzTXZrri8rvOe3XniiyWFnN/vFuh4zNt+2OOW23 qX1nYNrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkJwvD/IydmRsW9eVG3TfV YhO/k//iR8GqGob5mU8c92fV8vRE7p4RLmyRlntPI+05AA== 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/i915: mark requests for GuC virtual engines to avoid use-after-free References to i915_requests may be trapped by userspace inside a sync_file or dmabuf (dma-resv) and held indefinitely across different proceses. To counter-act the memory leaks, we try to not to keep references from the request past their completion. On the other side on fence release we need to know if rq->engine is valid and points to hw engine (true for non-virtual requests). To make it possible extra bit has been added to rq->execution_mask, for marking virtual engines. (cherry picked from commit 280410677af763f3871b93e794a199cfcf6fb580) The Linux kernel CVE team has assigned CVE-2023-53552 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit bcb9aa45d5a0e11ef91245330c53cde214d15e8d and fixed in 6.1.54 with commit 8017a27cec32eac8c8f9430b0a3055840136b856 Issue introduced in 6.0 with commit bcb9aa45d5a0e11ef91245330c53cde214d15e8d and fixed in 6.5.4 with commit 7fb464d52fa41c31a6fd1ad82888e67c65935d94 Issue introduced in 6.0 with commit bcb9aa45d5a0e11ef91245330c53cde214d15e8d and fixed in 6.6 with commit 5eefc5307c983b59344a4cb89009819f580c84fa 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-53552 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/gt/intel_engine_types.h drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c drivers/gpu/drm/i915/i915_request.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/8017a27cec32eac8c8f9430b0a3055840136b856 https://git.kernel.org/stable/c/7fb464d52fa41c31a6fd1ad82888e67c65935d94 https://git.kernel.org/stable/c/5eefc5307c983b59344a4cb89009819f580c84fa