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 438DC3191A7 for ; Fri, 5 Sep 2025 17:23:30 +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=1757093010; cv=none; b=UUZGXG+4hZfzPSE7igTIOkrPqBqYsOXeGrV4ZfBlpCDKD1QOk+AwiC0wuCmes1qm+uArzvzIUGDkHTPU8w8ektApnHi8SKRd4an+u4Rjy/C1noYiAr9oEObJ3HiFW9+eHDQFGe2IKngdhJmGYh/WHnywNbzb8dub0OSr5qOppWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757093010; c=relaxed/simple; bh=gFJorcLOIoOrGqVIbUqqDKd2OFp7Wangx5fy6lZjwJk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uYluTeCW7nYAE/nX+jYlHsf8W44VG8spGKPAKCjnPBWgjXFECU9DdRHlf2tpwxvsLHY5ECkbqJU4QqKhgRGL4SK0h0nkouwMqMNgXs0nuH3AoNtI3tlLLxLE9JWiOXPCAryXW0Akmr7V2eqvXy3N79avsudQZHqVCFf+vjzNzio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iFbfOL50; 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="iFbfOL50" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B238EC4CEF1; Fri, 5 Sep 2025 17:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757093010; bh=gFJorcLOIoOrGqVIbUqqDKd2OFp7Wangx5fy6lZjwJk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iFbfOL50WqLFaMjcmiobAwXP2YKDbgeXtJru8EpSAQuHu6cFUpDLt8BkNIfN4wEHT LOqMTHFqpOf6c2zHLrzha9eL89RU6UfhVcUGEjsWzg510yS063nTlo3m7A88Eh8AK8 xrcRqgF6xXgziTWJv2845OBhsdG5dVLbGO4aBhEY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38735: gve: prevent ethtool ops after shutdown Date: Fri, 5 Sep 2025 19:20:44 +0200 Message-ID: <2025090543-CVE-2025-38735-3fae@gregkh> X-Mailer: git-send-email 2.51.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=3303; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xZ5qVZsuCIdFukXN9rvhYVL3QxBxRKNWc7opz8wH83o=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pV9rfeFL+tylm3ziEqdJwqP1759K7Nj388TGif8el 5ysYtiS3hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATWVTIML9Sf77Dy73HTjqZ XT+kV6387XSiZB3DghmKMlz8C45dyXn0SpNxzs6+XwsziwE= 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: gve: prevent ethtool ops after shutdown A crash can occur if an ethtool operation is invoked after shutdown() is called. shutdown() is invoked during system shutdown to stop DMA operations without performing expensive deallocations. It is discouraged to unregister the netdev in this path, so the device may still be visible to userspace and kernel helpers. In gve, shutdown() tears down most internal data structures. If an ethtool operation is dispatched after shutdown(), it will dereference freed or NULL pointers, leading to a kernel panic. While graceful shutdown normally quiesces userspace before invoking the reboot syscall, forced shutdowns (as observed on GCP VMs) can still trigger this path. Fix by calling netif_device_detach() in shutdown(). This marks the device as detached so the ethtool ioctl handler will skip dispatching operations to the driver. The Linux kernel CVE team has assigned CVE-2025-38735 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 974365e518617c9ce917f61aacbba07e4bedcca0 and fixed in 6.1.149 with commit 48a4e89d50e8ea52e800bc7865970b92fcf4647c Issue introduced in 5.17 with commit 974365e518617c9ce917f61aacbba07e4bedcca0 and fixed in 6.6.103 with commit ba51d73408edf815cbaeab148625576c2dd90192 Issue introduced in 5.17 with commit 974365e518617c9ce917f61aacbba07e4bedcca0 and fixed in 6.12.44 with commit a7efffeecb881b4649fdc30de020ef910f35d646 Issue introduced in 5.17 with commit 974365e518617c9ce917f61aacbba07e4bedcca0 and fixed in 6.16.4 with commit 9d8a41e9a4ff83ff666de811e7f012167cdc00e9 Issue introduced in 5.17 with commit 974365e518617c9ce917f61aacbba07e4bedcca0 and fixed in 6.17-rc3 with commit 75a9a46d67f46d608205888f9b34e315c1786345 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-38735 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/net/ethernet/google/gve/gve_main.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/48a4e89d50e8ea52e800bc7865970b92fcf4647c https://git.kernel.org/stable/c/ba51d73408edf815cbaeab148625576c2dd90192 https://git.kernel.org/stable/c/a7efffeecb881b4649fdc30de020ef910f35d646 https://git.kernel.org/stable/c/9d8a41e9a4ff83ff666de811e7f012167cdc00e9 https://git.kernel.org/stable/c/75a9a46d67f46d608205888f9b34e315c1786345