Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 00D163B83F0 for ; Tue, 6 Oct 2026 08:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276374; cv=none; b=iTRHFihVS8QNNXA+pz22vh0eeQJ7EPWI9GSKMcv8FCpNyYNia6nvJitf9HcsittSRDQbH5J3TpPoHtxKyX6MDs2+WZe1F7ftjA9Ivro+0NraSIeEcJDvRmM+Lg2m3EG6w2S7eW1ZwgxUYi3t/ocpxrrkLI7cTjXeGYkdNcd4lNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276374; c=relaxed/simple; bh=clMSv8B2dLW5uTeVWRVG+B/17gitoLiuBu9VWg7YyZE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hk0mHiYssLK+xKRc1pCmUDFl+3N44PK1gbOJacfXfoPvUuiwYrbEIe518fQuiQxkQPGbT5j7VjONYkMt8ywtzz1NhJvgEc0ONYF1mHDFXzA/AN/mNQdwID6mMqm/p9u9Z/7t6NCQPokOBu6dvhoPI+U9AqCMejylqlOipMaYv3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T7hFPqgS; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="T7hFPqgS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ED781F000FF; Tue, 6 Oct 2026 08:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276372; bh=CRvHn5UcOAP9RVoJCBOso5wIIQRWt9JACfvfDlGjKjQ=; h=From:To:Cc:Subject:Date:Reply-To; b=T7hFPqgS4gTvd8QTw8cTT4EWMCWUoobGpVKPJ38kiHhlzDmSVwn5uLoc+OuvTDlNv e3cl1TIAlp+gvc7z5PctJhIASUZW+ZFPjQCiWq6HKVNP7uh7UKmh99yhiQLPAglbs7 QGSJ8ED6edEb70dDnVXzdIhDhN/1yIFd7oPqUl/8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98179: drm/amdgpu: fix rmmio iounmap skipped on device removal Date: Tue, 6 Oct 2026 10:44:40 +0200 Message-ID: <2026100632-CVE-2026-98179-c369@gregkh> X-Mailer: git-send-email 2.56.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=2675; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fYdjwQBuQ/mmdmEpt/z5Y8C+G6EMwhhV7i5hVM6XG4Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnw4uqzKiqtPlMfQLLf6I1vU2fLs1vJDoVd/8WzIr vXjWKfSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORfsewoM+o5eifKDOZI2Zv 18oz7EluD8yoZFjQxpjdckPiwtq5isnKB4USaj165Q4DAA== 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/amdgpu: fix rmmio iounmap skipped on device removal amdgpu_pci_remove() calls drm_dev_unplug() before fini_sw(), so drm_dev_enter() is already false there and the iounmap() guarded by it is skipped. This .remove path runs on both hot-unplug and plain rmmod, so the register BAR ioremap mapping leaks one instance per unload. Unmap rmmio unconditionally (guard only on non-NULL) and drop the now unused idx. (cherry picked from commit dd6f86a97260e5207d3329ad03aa89fdad61b1e6) The Linux kernel CVE team has assigned CVE-2026-98179 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 62d5f9f7110ad374db67ab4820f4ff2d916c3cdb and fixed in 6.12.112 with commit e81502d6791df9ecd003bfb2ca44f0d1f1b38439 Issue introduced in 5.17 with commit 62d5f9f7110ad374db67ab4820f4ff2d916c3cdb and fixed in 6.18.54 with commit cd55dde2b63789a3dafe982c89844f537501d096 Issue introduced in 5.17 with commit 62d5f9f7110ad374db67ab4820f4ff2d916c3cdb and fixed in 7.2.8 with commit a645584c3ccc493ee835f77155829442bd7578c3 Issue introduced in 5.17 with commit 62d5f9f7110ad374db67ab4820f4ff2d916c3cdb and fixed in 7.3-rc4 with commit 5155002b03b24ba3ef91c5c313b8cf0171b24904 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-2026-98179 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/amd/amdgpu/amdgpu_device.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/e81502d6791df9ecd003bfb2ca44f0d1f1b38439 https://git.kernel.org/stable/c/cd55dde2b63789a3dafe982c89844f537501d096 https://git.kernel.org/stable/c/a645584c3ccc493ee835f77155829442bd7578c3 https://git.kernel.org/stable/c/5155002b03b24ba3ef91c5c313b8cf0171b24904