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

net: ethtool: fix NULL pointer dereference in phy_reply_size

In phy_prepare_data(), several strings such as 'name', 'drvname',
'upstream_sfp_name', and 'downstream_sfp_name' are allocated using
kstrdup(). However, these allocations were not checked for failure.

If kstrdup() fails for 'name', it returns NULL while the function
continues. This leads to a kernel NULL pointer dereference and panic
later in phy_reply_size() when it unconditionally calls strlen() on
the NULL pointer.

While other strings like 'upstream_sfp_name' might be checked before
access in certain code paths, failing to handle these allocations
consistently can lead to incomplete data reporting or hidden bugs.

Fix this by adding proper NULL checks for all kstrdup() calls in
phy_prepare_data() and implement a centralized error handling path
using goto labels to ensure all previously allocated resources are
freed on failure.
Published: 2026-07-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel networking stack, the function phy_prepare_data() allocates strings for device and driver names using kstrdup(). These allocations are not checked for failure, so a NULL return causes a later unconditional strlen() call in phy_reply_size() to dereference a null pointer. The resulting kernel panic brings the system down, causing a denial‑of‑service condition. The flaw is a classic NULL pointer dereference (CWE‑476) and does not expose data or allow remote code execution.

Affected Systems

All Linux kernel builds before the patches referenced by commit c/3dbe20a38, c/4908f139, and c/61f53c1e are vulnerable. This includes the upstream Linux kernel supplied by the Linux:Linux vendor and any distribution kernels that have not yet incorporated these fixes.

Risk and Exploitability

The CVSS score of 5.5 rates this issue as moderate severity. The EPSS score of less than 1% indicates that exploitation is unlikely in the wild, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that executing ethtool commands requires CAP_NET_ADMIN or root privileges, making the likely attack vector local. An attacker who succeeds in forcing a kstrdup() failure will cause the kernel to panic, but cannot gain additional access or compromise data beyond the loss of availability.

Generated by OpenCVE AI on August 3, 2026 at 01:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the commits c/3dbe20a38, c/4908f139, or c/61f53c1e to apply the proper NULL checks for all kstrdup() allocations in phy_prepare_data() and the centralized error‑handling path.
  • Reboot the system to load the patched kernel and avoid the vulnerable code path.
  • Limit ethtool usage to trusted users with strictly necessary CAP_NET_ADMIN privileges and consider configuring role‑based access control to reduce the attack surface.

Generated by OpenCVE AI on August 3, 2026 at 01:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: ethtool: fix NULL pointer dereference in phy_reply_size In phy_prepare_data(), several strings such as 'name', 'drvname', 'upstream_sfp_name', and 'downstream_sfp_name' are allocated using kstrdup(). However, these allocations were not checked for failure. If kstrdup() fails for 'name', it returns NULL while the function continues. This leads to a kernel NULL pointer dereference and panic later in phy_reply_size() when it unconditionally calls strlen() on the NULL pointer. While other strings like 'upstream_sfp_name' might be checked before access in certain code paths, failing to handle these allocations consistently can lead to incomplete data reporting or hidden bugs. Fix this by adding proper NULL checks for all kstrdup() calls in phy_prepare_data() and implement a centralized error handling path using goto labels to ensure all previously allocated resources are freed on failure.
Title net: ethtool: fix NULL pointer dereference in phy_reply_size
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T15:40:19.044Z

Reserved: 2026-07-19T07:54:57.036Z

Link: CVE-2026-64120

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64120 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T01:30:16Z

Weaknesses