Skip to content
Heist/ feed
High

net/mdiobus: Fix potential out-of-bounds clause 45 read/write access

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: net/mdiobus: Fix potential out-of-bounds clause 45 read/write access When using publicly available tools like 'mdio-tools' to read/write data from/to network interface and its PHY via C45 (clause 45) mdiobus, there is no verification of parameters passed to the ioctl and it accepts any mdio address. Currently there is support for 32 addresses in kernel via PHY_MAX_ADDR define, but it is possible to pass higher value than that via ioctl. While read/write operation should generally fail in this case, mdiobus provides stats array, where wrong address may allow out-of-bounds read/write. Fix that by adding address verification before C45 read/write operation. While this excludes this access from any statistics, it improves security of read/write operation.

Announced Source revision 1
Original source ↗

CVE-2025-38110

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-38110

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a",
        "lessThan": "abb0605ca00979a49572a6516f6db22c3dc57223",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a",
        "lessThan": "31bf7b2b92563a352788cf9df3698682f659bacc",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a",
        "lessThan": "4ded22f7f3ce9714ed72c3e9c68fea1cb9388ae7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a",
        "lessThan": "260388f79e94fb3026c419a208ece8358bb7b555",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/phy/mdio_bus.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.3"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.3",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.94",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.34",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.15.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.16",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/phy/mdio_bus.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-38110

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30521 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement