Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2025-71196

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

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 >=.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < a9eec890879731c280697fdf1c50699e905b2fa7affected
  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < fb9d513cdf1614bf0f0e785816afb1faae3f81afaffected
  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < c06f13876cbad702582cd67fc77356e5524d02cdaffected
  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < 76b870fdaad82171a24b8aacffe5e4d9e0d2ee2caffected
  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < b91c9f6bfb04e430adeeac7e7ebc9d80f9d72badaffected
  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < 7c27eaf183563b86d815ff6e9cca0210b4cfa051affected
  • 94c358da3a0545205c6c6a50ae26141f1c73acfa to < cabd25b57216ddc132efbcc31f972baa03aad15aaffected

Linux Linux

Default version status: affected

  • 4.17affected
  • 0 to < 4.17unaffected
  • 5.10.249 to ≤ 5.10.*unaffected
  • 5.15.199 to ≤ 5.15.*unaffected
  • 6.1.162 to ≤ 6.1.*unaffected
  • 6.6.122 to ≤ 6.6.*unaffected
  • 6.12.67 to ≤ 6.12.*unaffected
  • 6.18.7 to ≤ 6.18.*unaffected
  • 6.19 to ≤ *unaffected

References