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 46AC5224CF for ; Fri, 13 Sep 2024 06:28:48 +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=1726208929; cv=none; b=kv+UPJzGmyiPSrMnQ5kc7dDDsLVlxz+gZtq84420CzK8dZTj6wHy9hmDOrq1VbDc8mBeXaG/sZHet0mF6dtwOcQLyvrxQYffbzSG9tbr3UaLtDp1yqvsl6zc9hzQyVlmdhGmGTBrRmochlmSeL5eBW+rj3Zx+kSAm0pw79rVFiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726208929; c=relaxed/simple; bh=IkBmzCrI9Fin5pcrXyuLk2c1WFSsyuFReLX0pqK9jzQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CX46gNc3reuV1HT3s2neWYy/nzca1jq5fRvhdmVmJ4Cjc4UDx+7tc2MAJbA1QKxHQI0+RuSeivwp4Pt2SohVFPHyq+4Q4pQXfs9TwEEnkQt0hyTPPox8g1fN91TVwuInkRrpeoqoLX3O51+kAcZqW4hJQonPxTwYT4k/D+1I54I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HwqKEZM5; 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="HwqKEZM5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A2D0C4CEC0; Fri, 13 Sep 2024 06:28:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726208928; bh=IkBmzCrI9Fin5pcrXyuLk2c1WFSsyuFReLX0pqK9jzQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HwqKEZM5cZbZwiP89U1dR/S9ZOMu+IYCHSy5676lUkt4CHaYIZIFSpsce9YsC+X64 Y8dbuU2RCPFScliILV+isHCfsqvjdhmdqyFOt95sWHGL2GYjkFIBod+mJJb3nfV2ml F0rFghJ7ds2QUrYVww40PsCDArymoMx0emLEZe50= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46705: drm/xe: reset mmio mappings with devm Date: Fri, 13 Sep 2024 08:28:31 +0200 Message-ID: <2024091330-CVE-2024-46705-b9c0@gregkh> X-Mailer: git-send-email 2.46.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=1923; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IkBmzCrI9Fin5pcrXyuLk2c1WFSsyuFReLX0pqK9jzQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPb/etT7Gvz23O/X2BJUTE8P+HOxNXfo3lL5RK8wq9f Vs0wFKzI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyTpBhrrSxjcwzC2ln2SRB uVcCD3+fTmYJZ5jD+1l+ft8EQxbbL52NEucTXp5iC0sBAA== 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: reset mmio mappings with devm Set our various mmio mappings to NULL. This should make it easier to catch something rogue trying to mess with mmio after device removal. For example, we might unmap everything and then start hitting some mmio address which has already been unmamped by us and then remapped by something else, causing all kinds of carnage. The Linux kernel CVE team has assigned CVE-2024-46705 to this issue. Affected and fixed versions =========================== Fixed in 6.10.7 with commit b1c9fbed3884 Fixed in 6.11-rc1 with commit c7117419784f 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-46705 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_device.c drivers/gpu/drm/xe/xe_mmio.c drivers/gpu/drm/xe/xe_mmio.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/b1c9fbed3884d3883021d699c7cdf5253a65543a https://git.kernel.org/stable/c/c7117419784f612d59ee565145f722e8b5541fe6