From mboxrd@z Thu Jan 1 00:00:00 1970 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 4090D15E5B8 for ; Thu, 27 Feb 2025 02:19: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=1740622742; cv=none; b=QFdT6X2Uv5SuSBDFTZQKBGPjzvU8BsB1LF+ba3f3VuXt9EkeXCz/s/NuENaqw92pKQuV+0SmNqDZoHoo920Vt+Y5cEG36jmwYK/6LqlTg7o5x/7tpf9S1kZokfXfT0vzrvVZ5Kwx545S1n7ttAl9E0lNx35TBhxT/nLcD0aRkGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622742; c=relaxed/simple; bh=MWp65A0pYoy3cA8/s9ggPWxCr30GhRBB3nlqDUFGCDU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uzHhI3bGc54WliodYc1O1u4+/cMzBEsZyd4wHBFhhQgk8uaGUUhyQnsEjDxQRnaOAU/p+LVHWPgIJIeUN7ObkkSzYzKD+1ZSb+oGqwWDz0hrUnDio6yIrHpLT4+WEEm/v76WQ4kt2GAbbbrDq1zIqy6kHyTlqWLHve8QJqDaaOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JitbV2iN; 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="JitbV2iN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A936C4CED6; Thu, 27 Feb 2025 02:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622742; bh=MWp65A0pYoy3cA8/s9ggPWxCr30GhRBB3nlqDUFGCDU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JitbV2iNI2zebzG9kBYPi16iAQvw8AdR1v9iEL2kxsgnkFiBhFE50JxWvV6ovGgXG EsU++AolDOxJVkdSDdaB1l757V4NYvnJsHFRSu47FSjxBorBiEqybjkViOKAYiIMMD ng4S4dvdpzGcvBnI9hXYShfNLfR47TdAcIqjhVLU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49570: drm/xe/tracing: Fix a potential TP_printk UAF Date: Wed, 26 Feb 2025 18:17:01 -0800 Message-ID: <2025022601-CVE-2024-49570-d2e7@gregkh> X-Mailer: git-send-email 2.48.1 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=2356; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MWp65A0pYoy3cA8/s9ggPWxCr30GhRBB3nlqDUFGCDU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T8sypwgtjG2Rk2FdUnNhskxH2MJtvnFzXuVxKWefd Mm1WTShI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyTIxhwbacpeX7OKfeqNrE InyFpzKuemmzLsOCQ1/v3HuxatWFHevuJ79f3H79/5417wA= 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/xe/tracing: Fix a potential TP_printk UAF The commit afd2627f727b ("tracing: Check "%s" dereference via the field and not the TP_printk format") exposes potential UAFs in the xe_bo_move trace event. Fix those by avoiding dereferencing the xe_mem_type_to_name[] array at TP_printk time. Since some code refactoring has taken place, explicit backporting may be needed for kernels older than 6.10. The Linux kernel CVE team has assigned CVE-2024-49570 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit e46d3f813abd2383881c66d21ba04cee9fbdf3a9 and fixed in 6.12.16 with commit 62cd174616ae3bf8a6cf468718f1ae74e5a07727 Issue introduced in 6.11 with commit e46d3f813abd2383881c66d21ba04cee9fbdf3a9 and fixed in 6.13.4 with commit c9402da34611e1039ecccba3c1481c4866f7ca64 Issue introduced in 6.11 with commit e46d3f813abd2383881c66d21ba04cee9fbdf3a9 and fixed in 6.14-rc1 with commit 07089083a526ea19daa72a1edf9d6e209615b77c 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-2024-49570 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_trace_bo.h 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/62cd174616ae3bf8a6cf468718f1ae74e5a07727 https://git.kernel.org/stable/c/c9402da34611e1039ecccba3c1481c4866f7ca64 https://git.kernel.org/stable/c/07089083a526ea19daa72a1edf9d6e209615b77c