Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net/mdiobus: Fix potential out-of-bounds read/write access When using publicly available tools like 'mdio-tools' to read/write data from/to network interface and its PHY via 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 read/write operation. While this excludes this access from any statistics, it improves security of read/write operation.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.239, 5.15.186, 6.1.142, 6.12.34, 6.15.3, 6.6.94
CVEs
CVE-2025-38111
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:18 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 3 Jul 2025, 08:35 UTC

In the Linux kernel, the following vulnerability has been resolved: net/mdiobus: Fix potential out-of-bounds read/write access When using publicly available tools like 'mdio-tools' to read/write data from/to network interface and its PHY via 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 read/write operation. While this excludes this access from any statistics, it improves security of read/write operation.

osv:CVE-2025-38111

Kernel

Fixed versions: 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3

Complete source record
{
  "id": "46a15e31279057be70f3b384b42ee133e4382eb85705818700ccb5e6babcd5c9",
  "url": "https://osv.dev/vulnerability/CVE-2025-38111",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net/mdiobus: Fix potential out-of-bounds read/write access",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net/mdiobus: Fix potential out-of-bounds read/write access When using publicly available tools like 'mdio-tools' to read/write data from/to network interface and its PHY via 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 read/write operation. While this excludes this access from any statistics, it improves security of read/write operation.",
    "evidence": "osv:CVE-2025-38111",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.239",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.186",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.142",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.94",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.34",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.15.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38111",
      "aliases": [
        "CVE-2025-38111"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "080bb352fad00d04995102f681b134e3754bfb6e"
                },
                {
                  "fixed": "19c5875e26c4ed5686d82a7d8f7051385461b9eb"
                },
                {
                  "fixed": "014ad9210373d2104f6ef10e6bb999a7a0a4c50e"
                },
                {
                  "fixed": "73d478234a619f3476028cb02dee699c30ae8262"
                },
                {
                  "fixed": "bab6bca0834cbb5be2a7cfe59ec6ad016ec72608"
                },
                {
                  "fixed": "b02d9d2732483e670bc34cb233d28e1d43b15da4"
                },
                {
                  "fixed": "049af7ac45a6b407748ee0995278fd861e36df8f"
                },
                {
                  "fixed": "0e629694126ca388916f059453a1c36adde219c4"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38111.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.6.0"
                },
                {
                  "fixed": "5.10.239"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.186"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.142"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.94"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.34"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.15.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38111.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.417884880Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-082556.html",
        "https://git.kernel.org/stable/c/014ad9210373d2104f6ef10e6bb999a7a0a4c50e",
        "https://git.kernel.org/stable/c/049af7ac45a6b407748ee0995278fd861e36df8f",
        "https://git.kernel.org/stable/c/0e629694126ca388916f059453a1c36adde219c4",
        "https://git.kernel.org/stable/c/19c5875e26c4ed5686d82a7d8f7051385461b9eb",
        "https://git.kernel.org/stable/c/73d478234a619f3476028cb02dee699c30ae8262",
        "https://git.kernel.org/stable/c/b02d9d2732483e670bc34cb233d28e1d43b15da4",
        "https://git.kernel.org/stable/c/bab6bca0834cbb5be2a7cfe59ec6ad016ec72608",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html",
        "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38111.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38111",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38111.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38111",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504601,
  "published_at": "2025-07-03T08:35:20.643+00:00"
}