# CVE-2025-38110: net/mdiobus: Fix potential out-of-bounds clause 45 read/write access

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2025-07-03T08:35:19.928Z
- Modified: 2026-10-15T22:18:27.633Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a before abb0605ca00979a49572a6516f6db22c3dc57223; from 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a before 31bf7b2b92563a352788cf9df3698682f659bacc; from 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a before 4ded22f7f3ce9714ed72c3e9c68fea1cb9388ae7; from 4e4aafcddbbfcdd6eed5780e190fcbfac8b4685a before 260388f79e94fb3026c419a208ece8358bb7b555; 6.3 (not affected: before 6.3; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.3 before 6.6.94; from 6.7 before 6.12.34; from 6.13 before 6.15.3; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/abb0605ca00979a49572a6516f6db22c3dc57223> (patch)
- <https://git.kernel.org/stable/c/31bf7b2b92563a352788cf9df3698682f659bacc> (patch)
- <https://git.kernel.org/stable/c/4ded22f7f3ce9714ed72c3e9c68fea1cb9388ae7> (patch)
- <https://git.kernel.org/stable/c/260388f79e94fb3026c419a208ece8358bb7b555> (patch)

## Sources

- CVE List: [CVE-2025-38110](https://www.cve.org/CVERecord?id=CVE-2025-38110), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38110](https://nvd.nist.gov/vuln/detail/CVE-2025-38110), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38110 · Whole record: https://cve.day/CVE-2025-38110.json · Rebuilt by cve.day 2026-11-25T22:59:00.514Z
