CVE Database›CVE-2025-68795

CVE-2025-68795

kernel: ethtool: Avoid overflowing userspace buffer on stats query

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · January 13, 2026

Updated · October 29, 2026

Description

A buffer overflow prevention fix was implemented in the Linux kernel's ethtool interface. A race condition exists between the ETHTOOL_GSSET_INFO, ETHTOOL_GSTRINGS, and ETHTOOL_GSTATS ioctl calls where stat counts can change between calls if the device is reconfigured. This could cause the kernel to write beyond the userspace-allocated buffer.

Statement

The fix prevents overflow by returning nothing when a size mismatch is detected. Some drivers with dynamic counters (mlx5, bnx2x, bna, ksz884x) are more susceptible to this race. The window requires device reconfiguration during ethtool stats queries.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition