CVE-2025-38735

gve: prevent ethtool ops after shutdown

State
Published
Severity
7.8 High
Published
Sep 5, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 974365e518617c9ce917f61aacbba07e4bedcca0 to before 48a4e89d50e8ea52e800bc7865970b92fcf4647cAffected
  • 974365e518617c9ce917f61aacbba07e4bedcca0 to before ba51d73408edf815cbaeab148625576c2dd90192Affected
  • 974365e518617c9ce917f61aacbba07e4bedcca0 to before a7efffeecb881b4649fdc30de020ef910f35d646Affected
  • 974365e518617c9ce917f61aacbba07e4bedcca0 to before 9d8a41e9a4ff83ff666de811e7f012167cdc00e9Affected
  • 974365e518617c9ce917f61aacbba07e4bedcca0 to before 75a9a46d67f46d608205888f9b34e315c1786345Affected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 6.1.149 through 6.1.*Not affected
  • 6.6.103 through 6.6.*Not affected
  • 6.12.44 through 6.12.*Not affected
  • 6.16.4 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.