{"id":"CVE-2024-47751","summary":"PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()","details":"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-\u003enum_slots is compared to\npcie-\u003egpio_id_reset size (MAX_PCI_SLOTS) which is correct and would lead\nto an overflow.\n\nThus, fix condition to pcie-\u003enum_slots + 1 \u003e= MAX_PCI_SLOTS and move\npcie-\u003enum_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]","modified":"2026-04-16T04:36:46.808667138Z","published":"2024-10-21T12:14:16.446Z","related":["SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47751.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6dcc5b49d6607a741a14122bf3105f3ac50d259e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95248d7497bcbfe7deed4805469c6ff6ddd7f9d1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a5f795f9412854df28e66679c5e6b68b0b79c229"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aeb0335971806e15ac91e838ca471936c8e7efd5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c500a86693a126c9393e602741e348f80f1b0fc5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47751.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47751"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b22dbbb24571c052364f476381dbac110bdca4d5"},{"fixed":"a5f795f9412854df28e66679c5e6b68b0b79c229"},{"fixed":"95248d7497bcbfe7deed4805469c6ff6ddd7f9d1"},{"fixed":"6dcc5b49d6607a741a14122bf3105f3ac50d259e"},{"fixed":"aeb0335971806e15ac91e838ca471936c8e7efd5"},{"fixed":"c500a86693a126c9393e602741e348f80f1b0fc5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47751.json"}}],"schema_version":"1.7.5"}