Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2024-47751

PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()

Description

In the Linux kernel, the following vulnerability has been resolved: PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port() Within kirin_pcie_parse_port(), the pcie->num_slots is compared to pcie->gpio_id_reset size (MAX_PCI_SLOTS) which is correct and would lead to an overflow. Thus, fix condition to pcie->num_slots + 1 >= MAX_PCI_SLOTS and move pcie->num_slots increment below the if-statement to avoid out-of-bounds array access. Found by Linux Verification Center (linuxtesting.org) with SVACE. [kwilczynski: commit log]

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

  • b22dbbb24571c052364f476381dbac110bdca4d5 to < a5f795f9412854df28e66679c5e6b68b0b79c229affected
  • b22dbbb24571c052364f476381dbac110bdca4d5 to < 95248d7497bcbfe7deed4805469c6ff6ddd7f9d1affected
  • b22dbbb24571c052364f476381dbac110bdca4d5 to < 6dcc5b49d6607a741a14122bf3105f3ac50d259eaffected
  • b22dbbb24571c052364f476381dbac110bdca4d5 to < aeb0335971806e15ac91e838ca471936c8e7efd5affected
  • b22dbbb24571c052364f476381dbac110bdca4d5 to < c500a86693a126c9393e602741e348f80f1b0fc5affected

Linux Linux

Default version status: affected

  • 5.16affected
  • 0 to < 5.16unaffected
  • 6.1.113 to ≤ 6.1.*unaffected
  • 6.6.54 to ≤ 6.6.*unaffected
  • 6.10.13 to ≤ 6.10.*unaffected
  • 6.11.2 to ≤ 6.11.*unaffected
  • 6.12 to ≤ *unaffected

References