CVE-2024-42117·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: ASSERT when failing to find index by plane/stream id [WHY] find_disp_cfg_idx_by_plane_id and find_disp_cfg_idx_by_stream_id returns an array index and they return -1 when not found; however, -1 is not a valid index number. [HOW] When this happens, call ASSERT(), and return a positive number (which is fewer than callers' array size) instead. This fixes 4 OVERRUN and 2 NEGATIVE_RETURNS issues reported by Coverity.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.9
- Published
- 2024-07-30
Affected versions
From: 6.7
Until: 6.9.9
Fixed in: 6.9.9
How to fix this CVE
Update your Linux kernel to version 6.9.9 or later to resolve this display driver vulnerability in AMD GPUs. This patch corrects improper array index handling in the display configuration lookup functions that could cause memory access violations. Apply the update immediately, especially on systems using AMD Radeon graphics hardware.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r (should be 6.9.9 or newer)
- Verify AMD GPU driver presence: lspci | grep -i amd or lsmod | grep amdgpu
- Review kernel logs for display configuration errors: sudo journalctl -k | grep -i 'disp_cfg\|display\|amd' | tail -50
- Confirm patch installation by checking kernel release notes: cat /proc/version | grep -E '6\.(9\.9|10|11|12)'
- Run: grep -i 'find_disp_cfg_idx' /boot/System.map-$(uname -r) to verify patched kernel symbols are present
FAQ
What is CVE-2024-42117?
This CVE involves improper error handling in AMD display driver functions that fail to validate array indices before use, potentially allowing out-of-bounds memory access when display configuration lookups fail.
Is CVE-2024-42117 being actively exploited?
No, this vulnerability is not currently being exploited in the wild according to CISA KEV data, and no public exploits have been disclosed.
What versions of Kernel are affected by CVE-2024-42117?
Linux kernel versions 6.7 through 6.9.8 are vulnerable. The fix was introduced in kernel 6.9.9 and is also available in newer stable series.
How do I check if my server is vulnerable to CVE-2024-42117?
Run 'uname -r' and compare the output against affected versions 6.7–6.9.8. If your kernel falls within this range and you have AMD GPU hardware installed, your system is vulnerable.
Does Defensia detect CVE-2024-42117?
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-42117 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42117. Free for 1 server.
Get started free