CVE-2025-38111
net/mdiobus: Fix potential out-of-bounds read/write access
Reported by linux · Published July 3, 2025
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.
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-libbpf-static | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel6.12 | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.12.35-55.103.amzn2023 |
| perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| bpftool | Amazon Linux | 6.12.35-55.103.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-livepatch-6.12.35-55.103 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-livepatch-6.1.144-170.251 | Amazon Linux | 1:1.0-0.amzn2023 |
| python3-perf6.12 | Amazon Linux | 6.12.35-55.103.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 080bb352fad00d04995102f681b134e3754bfb6e, 080bb352fad00d04995102f681b134e3754bfb6e, 080bb352fad00d04995102f681b134e3754bfb6e |
| Linux | Linux | 5.6, 0, 5.10.239 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | perf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.35-55.103 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.5 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.1.144-170.251 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Linux | Linux | 5.15.186, 080bb352fad00d04995102f681b134e3754bfb6e, 080bb352fad00d04995102f681b134e3754bfb6e |
| linux | linux_kernel | 5.6, 5.6, 5.6 |
| amazon:2023 | kernel-headers | 0 |
…and 6 more
Timeline
- Jul 2, 2025 CVE Published
- Jul 3, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (12 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (224 in total, the first dated here)
- Mar 29, 2026 Security Advisory (238 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38111
vulnetix vdb fixes CVE-2025-38111
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-2025-38111/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart