{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-47751","id":"CVE-2024-47751","title":"PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()","description":"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-statem","descriptionLong":"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]","published":"2024-10-21T12:14:16.446Z","updated":"2026-10-28T02:30:50.544886194Z","reserved":"2024-09-30T16:00:12.961Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b22dbbb24571c052364f476381dbac110bdca4d5","lessThan":"a5f795f9412854df28e66679c5e6b68b0b79c229","status":"affected","versionType":"git"},{"version":"b22dbbb24571c052364f476381dbac110bdca4d5","lessThan":"95248d7497bcbfe7deed4805469c6ff6ddd7f9d1","status":"affected","versionType":"git"},{"version":"b22dbbb24571c052364f476381dbac110bdca4d5","lessThan":"6dcc5b49d6607a741a14122bf3105f3ac50d259e","status":"affected","versionType":"git"},{"version":"b22dbbb24571c052364f476381dbac110bdca4d5","lessThan":"aeb0335971806e15ac91e838ca471936c8e7efd5","status":"affected","versionType":"git"},{"version":"b22dbbb24571c052364f476381dbac110bdca4d5","lessThan":"c500a86693a126c9393e602741e348f80f1b0fc5","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","lessThan":"5.16","status":"unaffected","versionType":"semver"},{"version":"6.1.113","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.54","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.13","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11.2","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-120"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/a5f795f9412854df28e66679c5e6b68b0b79c229","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/95248d7497bcbfe7deed4805469c6ff6ddd7f9d1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6dcc5b49d6607a741a14122bf3105f3ac50d259e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/aeb0335971806e15ac91e838ca471936c8e7efd5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c500a86693a126c9393e602741e348f80f1b0fc5","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47751.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47751","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00233,"epssPercentile":0.14285,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-47751","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47751","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-47751","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-47751","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}