CVE-2024-38569·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drivers/perf: hisi_pcie: Fix out-of-bound access when valid event group The perf tool allows users to create event groups through following cmd [1], but the driver does not check whether the array index is out of bounds when writing data to the event_group array. If the number of events in an event_group is greater than HISI_PCIE_MAX_COUNTERS, the memory write overflow of event_group array occurs. Add array index check to fix the possible array out of bounds violation, and return directly when write new events are written to array bounds. There are 9 different events in an event_group. [1] perf stat -e '{pmu/event1/, ... ,pmu/event9/}'
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to address an array bounds checking vulnerability in the HiSilicon PCIe performance monitoring driver. This flaw allows local users with sufficient privileges to trigger memory write overflow when configuring performance event groups with more than the maximum supported counters, potentially leading to kernel memory corruption. Patch your systems promptly, especially in production environments running vulnerable kernel versions 6.9 through 6.9.2.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to identify your current kernel version and confirm if it falls within the 6.9.0 to 6.9.2 range
- Check if the HiSilicon PCIe PMU driver is loaded by running 'lsmod | grep hisi_pcie' or 'dmesg | grep -i hisi'
- Review kernel logs for any memory access violations or oops messages related to perf or event_group: 'sudo dmesg | grep -i "out of bounds\|array\|event_group"'
- After updating, verify the new kernel version with 'uname -r' and confirm it is 6.9.3 or later, then reboot and re-run the version check
FAQ
What is CVE-2024-38569?
This vulnerability exists in the Linux kernel's HiSilicon PCIe performance monitoring driver, where insufficient bounds checking on performance event group arrays allows local users to write beyond allocated memory when configuring more than the maximum number of performance counters, potentially corrupting kernel memory.
Is CVE-2024-38569 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities database, this CVE is not currently being actively exploited in the wild, and no public exploits are available.
What versions of Kernel are affected by CVE-2024-38569?
Linux kernel versions 6.9.0 through 6.9.2 are affected; version 6.9.3 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-38569?
Run 'uname -r' to check your kernel version; if it shows 6.9.0, 6.9.1, or 6.9.2, your system is vulnerable. Additionally verify with 'cat /boot/config-$(uname -r) | grep HISI_PCIE' to confirm the affected driver is enabled.
Does Defensia detect CVE-2024-38569?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-38569 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3d1face00ebb7996842aee4214d7d0fb0c77b1e9
- https://git.kernel.org/stable/c/567d34626c22b36579ec0abfdf5eda2949044220
- https://git.kernel.org/stable/c/77fce82678ea5fd51442e62febec2004f79e041b
- https://git.kernel.org/stable/c/8e9aab2492178f25372f1820bfd9289fbd74efd0
- https://git.kernel.org/stable/c/ff48247144d13a3a0817127703724256008efa78
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38569. Free for 1 server.
Get started free