CVE-2024-27042·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix potential out-of-bounds access in 'amdgpu_discovery_reg_base_init()' The issue arises when the array 'adev->vcn.vcn_config' is accessed before checking if the index 'adev->vcn.num_vcn_inst' is within the bounds of the array. The fix involves moving the bounds check before the array access. This ensures that 'adev->vcn.num_vcn_inst' is within the bounds of the array before it is used as an index. Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1289 amdgpu_discovery_reg_base_init() error: testing array offset 'adev->vcn.num_vcn_inst' after use.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.2
- Published
- 2024-05-01
Affected versions
From: 6.8
Until: 6.8.2
Fixed in: 6.8.2
How to fix this CVE
Update your Linux kernel to version 6.8.2 or later to patch the out-of-bounds array access vulnerability in the AMD GPU discovery initialization routine. This vulnerability could allow a local attacker with limited privileges to trigger memory corruption in the video codec engine (VCN) configuration handler. Apply the kernel update immediately using your distribution's package manager.
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 — verify it is 6.8.2 or later
- Step 2: Confirm AMD GPU support is enabled by checking: lspci | grep -i amd and lsmod | grep amdgpu
- Step 3: Search kernel logs for VCN initialization errors using: dmesg | grep -i vcn or journalctl -k | grep vcn
- Step 4: Verify the patch was applied by checking: cat /proc/version and comparing the build date against the CVE release date (2024)
FAQ
What is CVE-2024-27042?
CVE-2024-27042 is a memory safety vulnerability in the Linux kernel's AMD GPU driver where the array bounds check for VCN (Video Core Next) instances happens after the array is accessed, potentially allowing out-of-bounds memory access and privilege escalation on systems with AMD GPUs.
Is CVE-2024-27042 being actively exploited?
No, CVE-2024-27042 is not listed as actively exploited in the CISA Known Exploited Vulnerabilities catalog, and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-27042?
Linux kernel versions 6.8 through 6.8.2 are affected. The vulnerability has been patched in kernel 6.8.2 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-27042?
Run 'uname -r' to get your kernel version and 'lspci | grep amd' to check for AMD GPUs. If you are running kernel 6.8.0, 6.8.1, or 6.8.2 with AMD GPU hardware, your system is vulnerable.
Does Defensia detect CVE-2024-27042?
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-27042 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d
- https://git.kernel.org/stable/c/8f3e68c6a3fff53c2240762a47a0045d89371775
- https://git.kernel.org/stable/c/b33d4af102b9c1f7a83d3f0ad3cab7d2bab8f058
- https://git.kernel.org/stable/c/cdb637d339572398821204a1142d8d615668f1e9
- https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-27042. Free for 1 server.
Get started free