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 E5F9320C027 for ; Tue, 1 Apr 2025 15:48:01 +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=1743522482; cv=none; b=GcC4JUFohO9whgGXpFdLP8QFbtkiy5xgO04HxTyb3g5nymwjeO5XZ77LYFPYZxFTN1kdfxFPVJdcZEin40KN2A8W6tXQQgFo++nPnpbzicCxvNCR5ootVQHnEdAa/IsTgnVrem7nKnU9FD9xBFP/T1nW8FysGR1yXoitfSpZXgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522482; c=relaxed/simple; bh=qrWxgbeGEHfWvvJNnxc0nZYSGJpc75sx2whcRhsR6DU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=STpJ4fZKrrerFAZaxET/68WFTiD8GHy05MWweJYsXYmK7lbr3nsYn/zyDs8mMk6ms/k725+qS6Z7j84OxKkkL4LdE7MGOYkIeWZUSozz94vswmXlFQSjTQgnheIRB6SBNuQZpWcaWkzM5+4xNpPJ3JrecWqcZ+0bTJ2wWJjIiNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RffTLvXd; 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="RffTLvXd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28484C4CEE4; Tue, 1 Apr 2025 15:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522481; bh=qrWxgbeGEHfWvvJNnxc0nZYSGJpc75sx2whcRhsR6DU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RffTLvXd39SCPX/3CcukVJnOrwcNwDJ4NJ+ee6rWtJCP39+6121kOkvvUGJWU52dk jEkEg0J5V+u5yK4oIg3ISFCeXtTuVC7YSLcWpblFTYIjKQcUz86eAhpzON5vwS7VwV JJYmbX+RVlxWMR0mW61lTzRwRU43bE9j+Y/jPQV4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21978: drm/hyperv: Fix address space leak when Hyper-V DRM device is removed Date: Tue, 1 Apr 2025 16:46:03 +0100 Message-ID: <2025040148-CVE-2025-21978-8f3e@gregkh> X-Mailer: git-send-email 2.49.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=2871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qrWxgbeGEHfWvvJNnxc0nZYSGJpc75sx2whcRhsR6DU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuHTEwh7Jy5laMG2Li5/HeCT2xr9z6mrHzDK37Nw5L XQWx638jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI6hOGOZzv1iV4+W+79zzh BGeoT7b8BnbP0wxzZctU3SIub9dPvM7H47ZhetevxJJXAA== 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/hyperv: Fix address space leak when Hyper-V DRM device is removed When a Hyper-V DRM device is probed, the driver allocates MMIO space for the vram, and maps it cacheable. If the device removed, or in the error path for device probing, the MMIO space is released but no unmap is done. Consequently the kernel address space for the mapping is leaked. Fix this by adding iounmap() calls in the device removal path, and in the error path during device probing. The Linux kernel CVE team has assigned CVE-2025-21978 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit a0ab5abced550ddeefddb06055ed60779a54eb79 and fixed in 6.1.132 with commit c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e Issue introduced in 6.0 with commit a0ab5abced550ddeefddb06055ed60779a54eb79 and fixed in 6.6.84 with commit ad27b4a51495490b815580d9b935e8eee14d1a9c Issue introduced in 6.0 with commit a0ab5abced550ddeefddb06055ed60779a54eb79 and fixed in 6.12.20 with commit 24f1bbfb2be77dad82489c1468bbb14312aab129 Issue introduced in 6.0 with commit a0ab5abced550ddeefddb06055ed60779a54eb79 and fixed in 6.13.8 with commit 158242b56bf465a73e1edeac0fe828a8acad4499 Issue introduced in 6.0 with commit a0ab5abced550ddeefddb06055ed60779a54eb79 and fixed in 6.14 with commit aed709355fd05ef747e1af24a1d5d78cd7feb81e 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-2025-21978 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/hyperv/hyperv_drm_drv.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/c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e https://git.kernel.org/stable/c/ad27b4a51495490b815580d9b935e8eee14d1a9c https://git.kernel.org/stable/c/24f1bbfb2be77dad82489c1468bbb14312aab129 https://git.kernel.org/stable/c/158242b56bf465a73e1edeac0fe828a8acad4499 https://git.kernel.org/stable/c/aed709355fd05ef747e1af24a1d5d78cd7feb81e