{"id":"CVE-2024-47751","published":"2024-10-21T12:14:16Z","modified":"2026-05-11T20:40:04Z","title":"PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()\n\nWithin kirin_pcie_parse_port(), the pcie->num_slots is compared to\npcie->gpio_id_reset size (MAX_PCI_SLOTS) which is correct and would lead\nto an overflow.\n\nThus, fix condition to pcie->num_slots + 1 >= MAX_PCI_SLOTS and move\npcie->num_slots increment below the if-statement to avoid out-of-bounds\narray access.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.\n\n[kwilczynski: commit log]","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00233,"percentile":0.14444,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a5f795f9412854df28e66679c5e6b68b0b79c229","tags":[]},{"url":"https://git.kernel.org/stable/c/95248d7497bcbfe7deed4805469c6ff6ddd7f9d1","tags":[]},{"url":"https://git.kernel.org/stable/c/6dcc5b49d6607a741a14122bf3105f3ac50d259e","tags":[]},{"url":"https://git.kernel.org/stable/c/aeb0335971806e15ac91e838ca471936c8e7efd5","tags":[]},{"url":"https://git.kernel.org/stable/c/c500a86693a126c9393e602741e348f80f1b0fc5","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":2.89}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b22dbbb24571c052364f476381dbac110bdca4d5, < a5f795f9412854df28e66679c5e6b68b0b79c229",">= b22dbbb24571c052364f476381dbac110bdca4d5, < 95248d7497bcbfe7deed4805469c6ff6ddd7f9d1",">= b22dbbb24571c052364f476381dbac110bdca4d5, < 6dcc5b49d6607a741a14122bf3105f3ac50d259e",">= b22dbbb24571c052364f476381dbac110bdca4d5, < aeb0335971806e15ac91e838ca471936c8e7efd5",">= b22dbbb24571c052364f476381dbac110bdca4d5, < c500a86693a126c9393e602741e348f80f1b0fc5"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-21T12:57:54.600283Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-42669","exploited":false,"provenance":"source"}}