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 92ED32D46A9 for ; Tue, 30 Dec 2025 12:11:56 +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=1767096716; cv=none; b=eteBPJbq6CvM4DoXAcnFmBZTZPIE/zx3brdNR+da+X9yGLtVQKZoUHkxDxbx+BZTmKtwqzFuLsrzRRk4v8VmPfgT8LbLp+dPTC2jsSMP2iKW3lV7JFhu/Zj41UywFA5J9mGcLipEpZwAVEy+hCJN/SzCjs5QSMFrZhyP3M8a0EM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096716; c=relaxed/simple; bh=JY/O7JSTay6Cr7NEwGjeIpz/HiFbEDGRXXsx/uo4C3Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oL8BXlQVUlfMTb803WXqRA9Y1i6oDB5zJtRkhIVZJsyRc1gdptoEs+1SAyHhA/LFX1VX8VsNJx9+sFxLZCuJ9aOvN2NhNgZMPGu8kYpnOzoxT17bt1z5xTf456lVymnk/xYLtYnANpW7c05N9aX7jCnJLkdoiUAC2D/P2HEq5Ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qPrxNa6g; 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="qPrxNa6g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9142C4CEFB; Tue, 30 Dec 2025 12:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096716; bh=JY/O7JSTay6Cr7NEwGjeIpz/HiFbEDGRXXsx/uo4C3Q=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qPrxNa6gHL24zfnLd4KeXYO37nsN69lbYRi5bfBrmxSkth7v+7hfoRzu6fn37n66n uMCpkGKmg4rk/wSG/G3Y+6LaUeprP6ZEGtIYOism+G70/HXn3e9FJAe9rMldj8FWYD i/Q+naXoujCSm++oJhuer5M8JyDlxbcZ1fAsw0m4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54202: drm/i915: fix race condition UAF in i915_perf_add_config_ioctl Date: Tue, 30 Dec 2025 13:10:10 +0100 Message-ID: <2025123031-CVE-2023-54202-1932@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=2639; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EeUJeImxvK+4iBYkJvN3F+jExUVq9zRA6BHZOYj761o=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB36bH3hl2bHl5ScRLYX259tj85+Uhf492balYodT7 FFpXY2qjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhITBHD/Ly8VRfyzCd/i2k+ YXQ97F75Oa+1nAwLVn6b8HLJJJZDJ2qvb1lXx/0lqvpIFwA= 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: fix race condition UAF in i915_perf_add_config_ioctl Userspace can guess the id value and try to race oa_config object creation with config remove, resulting in a use-after-free if we dereference the object after unlocking the metrics_lock. For that reason, unlocking the metrics_lock must be done after we are done dereferencing the object. [tursulin: Manually added stable tag.] (cherry picked from commit 49f6f6483b652108bcb73accd0204a464b922395) The Linux kernel CVE team has assigned CVE-2023-54202 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit f89823c212246d0671cc51e69894a3df1a743aee and fixed in 5.15.108 with commit 6eeb1cba4c9dc47656ea328afa34953c28783d8c Issue introduced in 4.14 with commit f89823c212246d0671cc51e69894a3df1a743aee and fixed in 6.1.24 with commit 240b1502708858b5e3f10b6dc5ca3f148a322fef Issue introduced in 4.14 with commit f89823c212246d0671cc51e69894a3df1a743aee and fixed in 6.2.11 with commit 7eb98f5ac551863efe8be810cea1cd5411d677b1 Issue introduced in 4.14 with commit f89823c212246d0671cc51e69894a3df1a743aee and fixed in 6.3 with commit dc30c011469165d57af9adac5baff7d767d20e5c 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-54202 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/i915_perf.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/6eeb1cba4c9dc47656ea328afa34953c28783d8c https://git.kernel.org/stable/c/240b1502708858b5e3f10b6dc5ca3f148a322fef https://git.kernel.org/stable/c/7eb98f5ac551863efe8be810cea1cd5411d677b1 https://git.kernel.org/stable/c/dc30c011469165d57af9adac5baff7d767d20e5c