CVE-2026-64120
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.18.35-68.127 | Amazon Linux | 1:1.0-0.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel6.18-modules-extra-common | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.35-68.127.amzn2023 |
| linux_kernel | linux | 7.0.11, 6.18.34 |
| Linux | Linux | 61f53c1e58d68723bc1db10912a53f1991f08719, 4908f1395fb1b832ceec11584af649874a2732ea, 3dbe20a3809347bacda890822e7ca013bd85a18c |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9dd2ad5e92b962d1349a7541d167e8e214e49f95, 9dd2ad5e92b962d1349a7541d167e8e214e49f95, 9dd2ad5e92b962d1349a7541d167e8e214e49f95 |
| Linux | Linux | 6.16, 0, 6.18.34 |
| amazon:2023 | kernel-livepatch-6.18.35-68.127 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| Linux | Linux | 7.1, 9dd2ad5e92b962d1349a7541d167e8e214e49f95, 9dd2ad5e92b962d1349a7541d167e8e214e49f95 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| linux | linux_kernel | 6.16, 6.16, 6.16 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
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