{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9dd2ad5e92b962d1349a7541d167e8e214e49f95"
            },
            {
              "fixed": "61f53c1e58d68723bc1db10912a53f1991f08719"
            },
            {
              "fixed": "3dbe20a3809347bacda890822e7ca013bd85a18c"
            },
            {
              "fixed": "4908f1395fb1b832ceec11584af649874a2732ea"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.34"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.11"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64120.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethtool: fix NULL pointer dereference in phy_reply_size\n\nIn phy_prepare_data(), several strings such as 'name', 'drvname',\n'upstream_sfp_name', and 'downstream_sfp_name' are allocated using\nkstrdup(). However, these allocations were not checked  for failure.\n\nIf kstrdup() fails for 'name', it returns NULL while the function\ncontinues. This leads to a kernel NULL pointer dereference and panic\nlater in phy_reply_size() when it unconditionally calls strlen() on\nthe NULL pointer.\n\nWhile other strings like 'upstream_sfp_name' might be checked before\naccess in certain code paths, failing to handle these allocations\nconsistently can lead to incomplete data reporting or hidden bugs.\n\nFix this by adding proper NULL checks for all kstrdup() calls in\nphy_prepare_data() and implement a centralized error handling path\nusing goto labels to ensure all previously allocated resources are\nfreed on failure.",
  "id": "CVE-2026-64120",
  "modified": "2026-07-21T03:42:14.286921546Z",
  "published": "2026-07-19T15:40:19.044Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3dbe20a3809347bacda890822e7ca013bd85a18c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4908f1395fb1b832ceec11584af649874a2732ea"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/61f53c1e58d68723bc1db10912a53f1991f08719"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64120.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64120"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "summary": "net: ethtool: fix NULL pointer dereference in phy_reply_size"
}