Skip to content
Heist/ feed
Back to feed
UnratedFix available

PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()

Type: advisorySources: OSV

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]

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.113, 6.10.13, 6.11.2, 6.6.54
CVEs
CVE-2024-47751
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 07:44 UTC · Revision 1

Source evidence

PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()

core-osv · Original source

Published 21 Oct 2024, 12:14 UTC

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]

osv:CVE-2024-47751

Kernel

Fixed versions: 6.1.113, 6.6.54, 6.10.13, 6.11.2

Complete source record
{
  "id": "44ca23feb4d7d57a67e595bd8d32bfbd9116d77d3006766c93b90d9d7747fe46",
  "url": "https://osv.dev/vulnerability/CVE-2024-47751",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()",
    "summary": "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]",
    "evidence": "osv:CVE-2024-47751",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-47751",
      "aliases": [
        "CVE-2024-47751"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47751.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.544886194Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/6dcc5b49d6607a741a14122bf3105f3ac50d259e",
        "https://git.kernel.org/stable/c/95248d7497bcbfe7deed4805469c6ff6ddd7f9d1",
        "https://git.kernel.org/stable/c/a5f795f9412854df28e66679c5e6b68b0b79c229",
        "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",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47751.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47751",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47751.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47751",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 518668,
  "published_at": "2024-10-21T12:14:16.446+00:00"
}