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 D72A52E3B19 for ; Tue, 7 Oct 2025 15:21:55 +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=1759850515; cv=none; b=T6rw+qnuGGWTWQRfTWtxtSDMwUD+cuEB2j15hwXXj2Ut43Peu3q6PGi2yTSwQDZATdQBd23ZAkJy9t3ecVEwRs5PtMeRgRa+gLmtCfmViXGuZl5+JIqrp4WwrQ3x0MXmvV2/QQzNWKhuIBmgoPrmtx9R/t3zQ2dO5VqfrEjmjH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850515; c=relaxed/simple; bh=qkBiegHI+Rp5z0uj5FsVuj/d6fR+XWH0I49Lfhw3NTw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p1PiQQ4vojkDBU3L6Pn5AiQCEGUde+bi0MOjDg8JgzIlHThT9d3rF3GQ6C5m1VRs9O1oWEeKkOlV6HHoRarb8WQyOR5UOumN8tMSUhMxseTE5cIEFHtBXiW/r538zGndHYME3wlLq4B+h4aNmQSIaibcP/sxJFR0tmPcGb3Hqb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gYLRztEJ; 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="gYLRztEJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17A72C4CEF1; Tue, 7 Oct 2025 15:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850515; bh=qkBiegHI+Rp5z0uj5FsVuj/d6fR+XWH0I49Lfhw3NTw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gYLRztEJz6XgygMKooWKXbNZpQeXr9OMAHPH3D0569p6uP8wf5gEVukgdP9bSYVZa Xb72QRr4bf/f0tHAgf9Fd8TW5rY/SFM74WL61dvlcITQi5kaeCphfTR6+fZw2S/0nS b87jGnwW0H7NDoz6HiFpZ5/lv4DrkmfkSRBIe1iY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53646: drm/i915/perf: add sentinel to xehp_oa_b_counters Date: Tue, 7 Oct 2025 17:19:51 +0200 Message-ID: <2025100717-CVE-2023-53646-c40e@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=2388; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=J/+iUo2MttCblBTkxN5R2U2jj+1LKxMpL7TkMZdix3U=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9UvvppdqZ9z2ebKxOTnry4qbKpNcnzWdsvNfe7Du8 HoPqe8SHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRgEsMCxZk333MtbU+2bNc dGbWh0NLHHbEPWaY7/T609pV3510c1i83ZZunrprmbX4PAA= 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/perf: add sentinel to xehp_oa_b_counters Arrays passed to reg_in_range_table should end with empty record. The patch solves KASAN detected bug with signature: BUG: KASAN: global-out-of-bounds in xehp_is_valid_b_counter_addr+0x2c7/0x350 [i915] Read of size 4 at addr ffffffffa1555d90 by task perf/1518 CPU: 4 PID: 1518 Comm: perf Tainted: G U 6.4.0-kasan_438-g3303d06107f3+ #1 Hardware name: Intel Corporation Meteor Lake Client Platform/MTL-P DDR5 SODIMM SBS RVP, BIOS MTLPFWI1.R00.3223.D80.2305311348 05/31/2023 Call Trace: ... xehp_is_valid_b_counter_addr+0x2c7/0x350 [i915] (cherry picked from commit 2f42c5afb34b5696cf5fe79e744f99be9b218798) The Linux kernel CVE team has assigned CVE-2023-53646 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 0fa9349dda030fa847b36f880a5eea25c3202b66 and fixed in 6.4.7 with commit 21d92025e80629fd5c25cd6751f8cf38c784dd4a Issue introduced in 6.2 with commit 0fa9349dda030fa847b36f880a5eea25c3202b66 and fixed in 6.5 with commit 785b3f667b4bf98804cad135005e964df0c750de 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-53646 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/21d92025e80629fd5c25cd6751f8cf38c784dd4a https://git.kernel.org/stable/c/785b3f667b4bf98804cad135005e964df0c750de