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 F381680BF2 for ; Mon, 29 Jul 2024 17:35:13 +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=1722274514; cv=none; b=TDOWpJSBiBqTmY1GcKduOJyZhQ7IeImP6VvIZbuRSulx1T0X0F9CRXplwRqVAnJFdPMLkmBF3QNjEKdLpy/gFkys3jvZaUb99F5v1ipeVKRV7qPus7dJKuFo3nii5yHhnMfTx7ewBtEpVak89ZA5VGhMjXXdO7mk83RHbRfGvOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722274514; c=relaxed/simple; bh=fycVBpc8OKT7Ulhr+KDfZv76nVYS8VpK6nChDVThtdg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LvYqNtV0uT6wIv38wS+6uJKQRKjcqyhBUwyleH8lvhhVSya5Rwzk3t7/OGk/WH9HJLJqhpzmJ7IpRN5E8x7AYDFNhqlC673AeUcr802TkT4Q21NbtWvKBMhh7/9xs0dRI5KYEss+z3mU8Nr4tN+JpGqH7obhhH/6rC/Ko+dF7gI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WaQPOYkr; 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="WaQPOYkr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13319C32786; Mon, 29 Jul 2024 17:35:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722274513; bh=fycVBpc8OKT7Ulhr+KDfZv76nVYS8VpK6nChDVThtdg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WaQPOYkrYmTFaV2TDVTPBJ+F00Ch8YkNydv5jwm4Ib+7EvjKojSpOocq0HGGIbOdU 0AxbTkz/L0nd2tQ6E8xTT1/uaIhci6BPzumJZN9x66YQYna6AEFtlX/wEpyIa2mNMf oLhSzrxQMtrJUj+rFcUeqCKdGzhDdXeHQiurLQlI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42091: drm/xe: Check pat.ops before dumping PAT settings Date: Mon, 29 Jul 2024 19:35:05 +0200 Message-ID: <2024072904-CVE-2024-42091-597d@gregkh> X-Mailer: git-send-email 2.45.2 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=1907; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fycVBpc8OKT7Ulhr+KDfZv76nVYS8VpK6nChDVThtdg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLL524sT9X45lCNO/Ov6EF3HrfQ1ZNexL97HeZY4OcP OdVfzOPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIwzGGBTsU/vg8XbUxZdnn N3ebLdVz7p2xamWYH923yvIWxyN5X68W7lvuSxqyl3TnAwA= 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: Check pat.ops before dumping PAT settings We may leave pat.ops unset when running on brand new platform or when running as a VF. While the former is unlikely, the latter is valid (future) use case and will cause NPD when someone will try to dump PAT settings by debugfs. It's better to check pointer to pat.ops instead of specific .dump hook, as we have this hook always defined for every .ops variant. The Linux kernel CVE team has assigned CVE-2024-42091 to this issue. Affected and fixed versions =========================== Fixed in 6.9.8 with commit 583ce246c7ff Fixed in 6.10 with commit a918e771e6fb 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-42091 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_pat.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/583ce246c7ff9edeb0de49130cdc3d45db8545cb https://git.kernel.org/stable/c/a918e771e6fbe1fa68932af5b0cdf473e23090cc