Skip to main content

Linux Kernel CVE-2025-68795

HIGH
2026-01-13 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Sources disagree (Low–High)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI
7.0 HIGH

Local ioctl access needs PR:L; success requires winning a narrow race and a dynamic-counter driver, so AC:H; kernel memory corruption yields high C/I/A.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
5.8 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Red Hat
5.5 LOW
qualitative

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Analysis Updated
Jul 30, 2026 - 07:21 vuln.today
v3 (cvss_changed)
Analysis Updated
Jul 30, 2026 - 07:20 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jul 30, 2026 - 06:37 vuln.today
cvss_changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 16, 2026 - 15:00 nvd
Patch available
Analysis Generated
Mar 12, 2026 - 21:54 vuln.today
CVE Published
Jan 13, 2026 - 16:16 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

ethtool: Avoid overflowing userspace buffer on stats query

The ethtool -S command operates across three ioctl calls: ETHTOOL_GSSET_INFO for the size, ETHTOOL_GSTRINGS for the names, and ETHTOOL_GSTATS for the values.

If the number of stats changes between these calls (e.g., due to device reconfiguration), userspace's buffer allocation will be incorrect, potentially leading to buffer overflow.

Drivers are generally expected to maintain stable stat counts, but some drivers (e.g., mlx5, bnx2x, bna, ksz884x) use dynamic counters, making this scenario possible.

Some drivers try to handle this internally:

  • bnad_get_ethtool_stats() returns early in case stats.n_stats is not

equal to the driver's stats count.

  • micrel/ksz884x also makes sure not to write anything beyond

stats.n_stats and overflow the buffer.

However, both use stats.n_stats which is already assigned with the value returned from get_sset_count(), hence won't solve the issue described here.

Change ethtool_get_strings(), ethtool_get_stats(), ethtool_get_phy_stats() to not return anything in case of a mismatch between userspace's size and get_sset_size(), to prevent buffer overflow. The returned n_stats value will be equal to zero, to reflect that nothing has been returned.

This could result in one of two cases when using upstream ethtool, depending on when the size change is detected:

  1. When detected in ethtool_get_strings():

ethtool -S eth2

no stats available

  1. When detected in get stats, all stats will be reported as zero.

Both cases are presumably transient, and a subsequent ethtool call should succeed.

Other than the overflow avoidance, these two cases are very evident (no output/cleared stats), which is arguably better than presenting incorrect/shifted stats. I also considered returning an error instead of a "silent" response, but that seems more destructive towards userspace apps.

Notes:

  • This patch does not claim to fix the inherent race, it only makes sure

that we do not overflow the userspace buffer, and makes for a more predictable behavior.

  • RTNL lock is held during each ioctl, the race window exists between

the separate ioctl calls when the lock is released.

  • Userspace ethtool always fills stats.n_stats, but it is likely that

these stats ioctls are implemented in other userspace applications which might not fill it. The added code checks that it's not zero, to prevent any regressions.

AnalysisAI

Local privilege-level buffer overflow in the Linux kernel's ethtool subsystem allows an attacker who can trigger a device stat-count change between the ETHTOOL_GSSET_INFO, ETHTOOL_GSTRINGS, and ETHTOOL_GSTATS ioctls to overflow a userspace stats buffer, corrupting memory and potentially escalating privileges. The flaw stems from a TOCTOU race where drivers using dynamic counters (mlx5, bnx2x, bna, ksz884x) can report a different stat count than the buffer sized by userspace. It is not in CISA KEV, EPSS exploitation probability is very low (0.06%), and no public exploit has been identified, though a vendor patch is available.

Technical ContextAI

The ethtool subsystem exposes NIC statistics to userspace via three sequential ioctl calls: ETHTOOL_GSSET_INFO returns the number of stats (via get_sset_count()), ETHTOOL_GSTRINGS returns the stat names, and ETHTOOL_GSTATS returns the values. Userspace allocates its buffer based on the first call's result, but RTNL lock is released between each ioctl, opening a race window. Most drivers are expected to keep stat counts stable, but drivers with dynamic counters - Mellanox mlx5, Broadcom bnx2x, Brocade bna, and Micrel ksz884x - can change their count if the device is reconfigured mid-sequence, so the kernel may then write more entries than the userspace buffer can hold. This is a classic Time-of-Check to Time-of-Use (TOCTOU) race leading to CWE-787 (Out-of-bounds Write) / CWE-120-style buffer overflow, even though the input lists CWE as N/A. The fix makes ethtool_get_strings(), ethtool_get_stats(), and ethtool_get_phy_stats() return zero entries when the current get_sset_count() disagrees with the size userspace requested, trading a transient 'no stats available' or zeroed output for memory safety.

Affected ProductsAI

The vulnerability affects the Linux kernel's core ethtool subsystem, with practical impact concentrated on systems using NIC drivers with dynamic statistic counters, explicitly named as Mellanox mlx5, Broadcom bnx2x, Brocade bna, and Micrel/ksz884x. No exact fixed kernel version or affected version range was provided in the structured input; the seven git.kernel.org stable commit references (e.g. 3df375a1e754, 4066b5b54629, 4afcb9853552, 7b07be1ff1cb, 7bea09f60f2a, ca9983bc3a11, f9dc0f45d2cd) indicate the fix was backported across multiple stable branches. Canonical published Ubuntu Security Notice USN-8096-1 (https://ubuntu.com/security/notices/USN-8096-1) covering affected Ubuntu kernel packages, and VulDB tracks it at https://vuldb.com/?id.340646. Consult the distribution advisory to map the fix to your exact kernel package version.

RemediationAI

Apply the vendor patch: update to a fixed kernel build that includes the ethtool stats overflow fix, using the stable commits referenced at git.kernel.org (3df375a1e754, 4066b5b54629, 4afcb9853552, 7b07be1ff1cb, 7bea09f60f2a, ca9983bc3a11, f9dc0f45d2cd) or, for Ubuntu, the packages in USN-8096-1 (https://ubuntu.com/security/notices/USN-8096-1) followed by a reboot into the new kernel. An exact upstream release version was not provided in the input, so confirm the specific patched package version with your distribution before deployment. As a compensating control until patched, restrict who can invoke ethtool stat queries by limiting CAP_NET_ADMIN and local shell access on affected hosts, and avoid concurrent device reconfiguration (interface reconfig, driver reload, feature toggling) on NICs using dynamic-counter drivers (mlx5, bnx2x, bna, ksz884x) while stats are being read - noting these controls only reduce the race opportunity and do not eliminate the underlying flaw.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Image SL-Micro Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.115 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected

Share

CVE-2025-68795 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy