CVE-2024-47751·Kernel vulnerability
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]
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.2
- Published
- 2024-10-21
Affected versions
From: 6.11
Until: 6.11.2
Fixed in: 6.11.2
How to fix this CVE
Update your Linux kernel to version 6.11.2 or later to resolve a buffer overflow vulnerability in the Kirin PCIe controller initialization. This flaw could allow a local privileged attacker to trigger memory corruption during PCI slot enumeration. Apply the kernel update immediately if you are running affected versions 6.11 through 6.11.1.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and verify if it falls within 6.11.0 to 6.11.1
- Step 2: Determine if your system uses Kirin PCIe hardware by running `lspci | grep -i kirin` or checking `/proc/cpuinfo` for ARM-based Kirin processors
- Step 3: Search system logs for PCI enumeration errors with `grep -i 'kirin\|pcie.*parse\|buffer' /var/log/kern.log /var/log/dmesg` to identify exploitation attempts
- Step 4: After kernel update, verify the fix with `uname -r` showing version 6.11.2 or higher, then reboot and confirm no PCI errors in dmesg
FAQ
What is CVE-2024-47751?
CVE-2024-47751 is a buffer overflow flaw in the Linux kernel's Kirin PCIe controller driver that occurs during port configuration parsing. An off-by-one error in boundary checking allows writes beyond the allocated gpio_id_reset array bounds when enumerating PCI slots.
Is CVE-2024-47751 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and has no known public exploits at this time. However, it requires local privileged access (PR:L) and should still be patched proactively.
What versions of Kernel are affected by CVE-2024-47751?
Linux kernel versions 6.11.0, 6.11.1, and 6.11.2 (prior to the fix commit) are affected. The vulnerability is resolved in kernel 6.11.2 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-47751?
Run `uname -r` to display your kernel version. If the output is 6.11.0 or 6.11.1 and your hardware includes Kirin PCIe controllers (check with `lspci`), your system is vulnerable.
Does Defensia detect CVE-2024-47751?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-47751 will appear in your dashboard with remediation steps.
Related Kernel CVEs
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
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-47751. Free for 1 server.
Get started free