VDB

CVE-2026-64120

CVE-2026-64120 PUBLISHED

net: ethtool: fix NULL pointer dereference in phy_reply_size

Reported by linux · Published July 19, 2026

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.

EPSS 0.16% · 5.3th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-livepatch-6.18.35-68.127Amazon Linux1:1.0-0.amzn2023
bpftool6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.35-68.127.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.35-68.127.amzn2023
perf6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.35-68.127.amzn2023
kernel6.18-develAmazon Linux1:6.18.35-68.127.amzn2023
python3-perf6.18Amazon Linux1:6.18.35-68.127.amzn2023
linux_kernellinux7.0.11, 6.18.34
LinuxLinux61f53c1e58d68723bc1db10912a53f1991f08719, 4908f1395fb1b832ceec11584af649874a2732ea, 3dbe20a3809347bacda890822e7ca013bd85a18c

Risk scores

EPSS Score
0.16%
5.3th percentile

Affected products

VendorProductVersions
LinuxLinux9dd2ad5e92b962d1349a7541d167e8e214e49f95, 9dd2ad5e92b962d1349a7541d167e8e214e49f95, 9dd2ad5e92b962d1349a7541d167e8e214e49f95
LinuxLinux6.16, 0, 6.18.34
amazon:2023kernel-livepatch-6.18.35-68.1270
amazon:2023bpftool6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools0
amazon:2023perf6.180
amazon:2023kernel6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-devel0
amazon:2023python3-perf6.180
LinuxLinux7.1, 9dd2ad5e92b962d1349a7541d167e8e214e49f95, 9dd2ad5e92b962d1349a7541d167e8e214e49f95
amazon:2023microvm-kernel6.180
linuxlinux_kernel6.16, 6.16, 6.16
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools-devel0

Timeline

  • Jul 19, 2026 CVE Published
  • Jul 20, 2026 Coalition ESS Score
  • Jul 20, 2026 Security Advisory (31 in total, the first dated here)
  • Aug 7, 2026 EPSS Score (9 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
  • Aug 13, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64120
vulnetix vdb fixes CVE-2026-64120

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64120/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›