# CVE-2025-71196: phy: stm32-usphyc: Fix off by one in probe()

- Severity: not scored yet
- 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.21%, higher than 11% of CVEs (2026-12-02)
- Published: 2026-02-04T16:04:17.141Z
- Modified: 2026-06-17T10:03:52.030Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

phy: stm32-usphyc: Fix off by one in probe()

The "index" variable is used as an index into the usbphyc->phys[] array
which has usbphyc->nphys elements.  So if it is equal to usbphyc->nphys
then it is one element out of bounds.  The "index" comes from the
device tree so it's data that we trust and it's unlikely to be wrong,
however it's obviously still worth fixing the bug.  Change the > to >=.

(As written by CVE List.)

## Affected

- Linux Linux: from 94c358da3a0545205c6c6a50ae26141f1c73acfa before a9eec890879731c280697fdf1c50699e905b2fa7; from 94c358da3a0545205c6c6a50ae26141f1c73acfa before fb9d513cdf1614bf0f0e785816afb1faae3f81af; from 94c358da3a0545205c6c6a50ae26141f1c73acfa before c06f13876cbad702582cd67fc77356e5524d02cd; from 94c358da3a0545205c6c6a50ae26141f1c73acfa before 76b870fdaad82171a24b8aacffe5e4d9e0d2ee2c; from 94c358da3a0545205c6c6a50ae26141f1c73acfa before b91c9f6bfb04e430adeeac7e7ebc9d80f9d72bad; from 94c358da3a0545205c6c6a50ae26141f1c73acfa before 7c27eaf183563b86d815ff6e9cca0210b4cfa051; from 94c358da3a0545205c6c6a50ae26141f1c73acfa before cabd25b57216ddc132efbcc31f972baa03aad15a; 4.17 (not affected: before 4.17; from 5.10.249 up to 5.10.*; from 5.15.199 up to 5.15.*; from 6.1.162 up to 6.1.*; from 6.6.122 up to 6.6.*; from 6.12.67 up to 6.12.*; from 6.18.7 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/a9eec890879731c280697fdf1c50699e905b2fa7>
- <https://git.kernel.org/stable/c/fb9d513cdf1614bf0f0e785816afb1faae3f81af>
- <https://git.kernel.org/stable/c/c06f13876cbad702582cd67fc77356e5524d02cd>
- <https://git.kernel.org/stable/c/76b870fdaad82171a24b8aacffe5e4d9e0d2ee2c>
- <https://git.kernel.org/stable/c/b91c9f6bfb04e430adeeac7e7ebc9d80f9d72bad>
- <https://git.kernel.org/stable/c/7c27eaf183563b86d815ff6e9cca0210b4cfa051>
- <https://git.kernel.org/stable/c/cabd25b57216ddc132efbcc31f972baa03aad15a>

## Sources

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

---

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