CVE-2026-64228 (GCVE-0-2026-64228)

Vulnerability from cvelistv5 – Published: 2026-07-24 15:23 – Updated: 2026-07-24 15:23
VLAI
Title
net: ethtool: phy: avoid NULL deref when PHY driver is unbound
Summary
In the Linux kernel, the following vulnerability has been resolved: net: ethtool: phy: avoid NULL deref when PHY driver is unbound phydev->drv can become NULL while the phy_device is still attached to its net_device, namely after the PHY driver is unbound via sysfs: echo <mdio_id> > /sys/bus/mdio_bus/drivers/<phy_drv>/unbind phy_remove() clears phydev->drv but doesn't call phy_detach(), so the phy_device stays in the link topology xarray and ethnl_req_get_phydev() still hands it back. ETHTOOL_MSG_PHY_GET then oopses on: rep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL); drvname is already treated as optional by phy_reply_size(), phy_fill_reply() and phy_cleanup_data(), so just skip the allocation when there is no driver bound.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 9dd2ad5e92b962d1349a7541d167e8e214e49f95 , < 3586924625559e6f9876d726c80ff0a75f0d5849 (git)
Affected: 9dd2ad5e92b962d1349a7541d167e8e214e49f95 , < 17fe2381f967d353183f374a1c0181a6d194158c (git)
Affected: 9dd2ad5e92b962d1349a7541d167e8e214e49f95 , < e3adf69f8eb121a9128c2b0029efd050d3649153 (git)
Create a notification for this product.
Linux Linux Affected: 6.16
Unaffected: 0 , < 6.16 (semver)
Unaffected: 6.18.34 , ≤ 6.18.* (semver)
Unaffected: 7.0.11 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/ethtool/phy.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3586924625559e6f9876d726c80ff0a75f0d5849",
              "status": "affected",
              "version": "9dd2ad5e92b962d1349a7541d167e8e214e49f95",
              "versionType": "git"
            },
            {
              "lessThan": "17fe2381f967d353183f374a1c0181a6d194158c",
              "status": "affected",
              "version": "9dd2ad5e92b962d1349a7541d167e8e214e49f95",
              "versionType": "git"
            },
            {
              "lessThan": "e3adf69f8eb121a9128c2b0029efd050d3649153",
              "status": "affected",
              "version": "9dd2ad5e92b962d1349a7541d167e8e214e49f95",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/ethtool/phy.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.16"
            },
            {
              "lessThan": "6.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.34",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.34",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.11",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethtool: phy: avoid NULL deref when PHY driver is unbound\n\nphydev-\u003edrv can become NULL while the phy_device is still attached to\nits net_device, namely after the PHY driver is unbound via sysfs:\n\n\techo \u003cmdio_id\u003e \u003e /sys/bus/mdio_bus/drivers/\u003cphy_drv\u003e/unbind\n\nphy_remove() clears phydev-\u003edrv but doesn\u0027t call phy_detach(), so the\nphy_device stays in the link topology xarray and ethnl_req_get_phydev()\nstill hands it back. ETHTOOL_MSG_PHY_GET then oopses on:\n\n\trep_data-\u003edrvname = kstrdup(phydev-\u003edrv-\u003ename, GFP_KERNEL);\n\ndrvname is already treated as optional by phy_reply_size(),\nphy_fill_reply() and phy_cleanup_data(), so just skip the allocation\nwhen there is no driver bound."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-24T15:23:11.510Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849"
        },
        {
          "url": "https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c"
        },
        {
          "url": "https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153"
        }
      ],
      "title": "net: ethtool: phy: avoid NULL deref when PHY driver is unbound",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64228",
    "datePublished": "2026-07-24T15:23:11.510Z",
    "dateReserved": "2026-07-19T15:36:31.771Z",
    "dateUpdated": "2026-07-24T15:23:11.510Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-64228",
      "date": "2026-07-31",
      "epss": "0.00166",
      "percentile": "0.06242"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64228\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-24T16:16:51.913\",\"lastModified\":\"2026-07-30T14:59:47.950\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: ethtool: phy: avoid NULL deref when PHY driver is unbound\\n\\nphydev-\u003edrv can become NULL while the phy_device is still attached to\\nits net_device, namely after the PHY driver is unbound via sysfs:\\n\\n\\techo \u003cmdio_id\u003e \u003e /sys/bus/mdio_bus/drivers/\u003cphy_drv\u003e/unbind\\n\\nphy_remove() clears phydev-\u003edrv but doesn\u0027t call phy_detach(), so the\\nphy_device stays in the link topology xarray and ethnl_req_get_phydev()\\nstill hands it back. ETHTOOL_MSG_PHY_GET then oopses on:\\n\\n\\trep_data-\u003edrvname = kstrdup(phydev-\u003edrv-\u003ename, GFP_KERNEL);\\n\\ndrvname is already treated as optional by phy_reply_size(),\\nphy_fill_reply() and phy_cleanup_data(), so just skip the allocation\\nwhen there is no driver bound.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"net/ethtool/phy.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"9dd2ad5e92b962d1349a7541d167e8e214e49f95\",\"lessThan\":\"3586924625559e6f9876d726c80ff0a75f0d5849\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"9dd2ad5e92b962d1349a7541d167e8e214e49f95\",\"lessThan\":\"17fe2381f967d353183f374a1c0181a6d194158c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"9dd2ad5e92b962d1349a7541d167e8e214e49f95\",\"lessThan\":\"e3adf69f8eb121a9128c2b0029efd050d3649153\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"net/ethtool/phy.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.16\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.16\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.34\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.11\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-07-29T02:12:58+00:00",
      "cve": "CVE-2026-64228",
      "id": "CVE-2026-64228",
      "initial_release_date": "2026-07-24T00:00:00+00:00",
      "product_status:known_affected": "79",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net: ethtool: phy: avoid NULL deref when PHY driver is unbound",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64228.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-28T17:08:55Z",
      "cve": "CVE-2026-64228",
      "id": "CVE-2026-64228",
      "initial_release_date": "2026-07-25T00:14:07Z",
      "product_status:known_not_affected": "298",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-64228",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-64228.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…