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 < a5f795f9412854df28e66679c5e6b68b0b79c229affectedb22dbbb24571c052364f476381dbac110bdca4d5 to < 95248d7497bcbfe7deed4805469c6ff6ddd7f9d1affectedb22dbbb24571c052364f476381dbac110bdca4d5 to < 6dcc5b49d6607a741a14122bf3105f3ac50d259eaffectedb22dbbb24571c052364f476381dbac110bdca4d5 to < aeb0335971806e15ac91e838ca471936c8e7efd5affectedb22dbbb24571c052364f476381dbac110bdca4d5 to < c500a86693a126c9393e602741e348f80f1b0fc5affected
Linux Linux
Default version status: affected
5.16affected0 to < 5.16unaffected6.1.113 to ≤ 6.1.*unaffected6.6.54 to ≤ 6.6.*unaffected6.10.13 to ≤ 6.10.*unaffected6.11.2 to ≤ 6.11.*unaffected6.12 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a5f795f9412854df28e66679c5e6b68b0b79c229 ↗
- https://git.kernel.org/stable/c/95248d7497bcbfe7deed4805469c6ff6ddd7f9d1 ↗
- https://git.kernel.org/stable/c/6dcc5b49d6607a741a14122bf3105f3ac50d259e ↗
- https://git.kernel.org/stable/c/aeb0335971806e15ac91e838ca471936c8e7efd5 ↗
- https://git.kernel.org/stable/c/c500a86693a126c9393e602741e348f80f1b0fc5 ↗
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html ↗