CVE-2024-26797·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Prevent potential buffer overflow in map_hw_resources Adds a check in the map_hw_resources function to prevent a potential buffer overflow. The function was accessing arrays using an index that could potentially be greater than the size of the arrays, leading to a buffer overflow. Adds a check to ensure that the index is within the bounds of the arrays. If the index is out of bounds, an error message is printed and break it will continue execution with just ignoring extra data early to prevent the buffer overflow. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_wrapper.c:79 map_hw_resources() error: buffer overflow 'dml2->v20.scratch.dml_to_dc_pipe_mapping.disp_cfg_to_stream_id' 6 <= 7 drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml2_wrapper.c:81 map_hw_resources() error: buffer overflow 'dml2->v20.scratch.dml_to_dc_pipe_mapping.disp_cfg_to_plane_id' 6 <= 7
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.9
- Published
- 2024-04-04
Affected versions
From: 6.7
Until: 6.7.9
Fixed in: 6.7.9
How to fix this CVE
Update your Linux kernel to version 6.7.9 or later to patch the buffer overflow vulnerability in the AMD display driver's map_hw_resources function. Systems running kernel versions 6.7 through 6.7.8 should prioritize this update as the flaw allows out-of-bounds array access in GPU display configuration mapping. Reboot the system after kernel installation to activate the patched version.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (compare against vulnerable range 6.7.0-6.7.8)
- Verify if AMD GPU display driver is loaded: lsmod | grep amdgpu (confirms exposure to display subsystem code)
- Search kernel logs for buffer overflow warnings: dmesg | grep -i 'buffer\|overflow\|dml2_wrapper' (may not show unless actively triggered)
- After patching, confirm new version: uname -r (should show 6.7.9 or higher)
FAQ
What is CVE-2024-26797?
CVE-2024-26797 is a buffer overflow vulnerability in the Linux kernel's AMD display driver where the map_hw_resources function fails to validate array indices before access, potentially allowing memory corruption on systems with AMD GPUs.
Is CVE-2024-26797 being actively exploited?
No, there is no evidence of active exploitation or public exploits available for CVE-2024-26797. It is not listed in CISA's Known Exploited Vulnerabilities catalog.
What versions of Kernel are affected by CVE-2024-26797?
Linux kernel versions 6.7.0 through 6.7.8 are vulnerable. The fix is available in kernel 6.7.9 and later.
How do I check if my server is vulnerable to CVE-2024-26797?
Run 'uname -r' to check your kernel version; if it shows 6.7.0 through 6.7.8 and 'lsmod | grep amdgpu' confirms the AMD display driver is loaded, your system is vulnerable.
Does Defensia detect CVE-2024-26797?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-26797 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-26797. Free for 1 server.
Get started free