CVE-2024-47751: PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port()
In the Linux kernel, the following vulnerability has been resolved:
PCI: kirin: Fix buffer overflow in kirinpcieparseport()
Within kirinpcieparseport(), the pcie->numslots is compared to pcie->gpioidreset size (MAXPCISLOTS) which is correct and would lead to an overflow.
Thus, fix condition to pcie->numslots + 1 >= MAXPCISLOTS and move pcie->numslots increment below the if-statement to avoid out-of-bounds array access.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[kwilczynski: commit log]
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47751?
CVE-2024-47751 has a medium severity rating due to the potential for buffer overflow exploits.
How do I fix CVE-2024-47751?
To fix CVE-2024-47751, update the Linux kernel to a version that includes the security patch.
Which versions of the Linux kernel are affected by CVE-2024-47751?
CVE-2024-47751 affects Linux kernel versions between 5.16 and 6.1.113, 6.2 and 6.6.54, 6.7 and 6.10.13, and 6.11 to 6.11.2.
What function is related to CVE-2024-47751?
CVE-2024-47751 is related to the function kirin_pcie_parse_port() in the Linux kernel.
What type of vulnerability is CVE-2024-47751?
CVE-2024-47751 is classified as a buffer overflow vulnerability.