Junglewise Threat Intelligence

CVE-2025-68795: Linux Kernel buffer overflow in ethtool stats query

CVE-2025-68795 · Severity: high · CVSS 7.8 · Published 2026-01-13

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking tool interface could allow a local user to cause a system crash or potentially gain unauthorized access. The issue occurs when network device statistics change while they are being queried, leading to a memory error. This affects systems using specific network drivers that support dynamic hardware counters.

Technical details

A race condition exists in the ethtool ioctl interface (net/ethtool/ioctl.c) during statistics retrieval. The process involves three separate ioctl calls: ETHTOOL_GSSET_INFO, ETHTOOL_GSTRINGS, and ETHTOOL_GSTATS. Because the RTNL lock is released between these calls, a device reconfiguration can change the number of available statistics. If the count increases after the userspace buffer has been allocated based on the first call, subsequent calls to ethtool_get_strings() or ethtool_get_stats() can result in a buffer overflow. The fix introduces a check to ensure the userspace buffer size matches the current kernel statistics count, returning zero stats if a mismatch is detected to prevent memory corruption.

Affected products

  • Linux Linux Kernel 2.6.12-rc2 to 6.12.x

Timeline

  • 2025-12-08: disclosed: Initial patch submission by Gal Pressman
  • 2026-01-13: advisory: CVE published
  • 2026-01-19: patched: Patch committed to stable tree

References

Related threats