CVE-2024-26672·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix variable 'mca_funcs' dereferenced before NULL check in 'amdgpu_mca_smu_get_mca_entry()' Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c:377 amdgpu_mca_smu_get_mca_entry() warn: variable dereferenced before check 'mca_funcs' (see line 368) 357 int amdgpu_mca_smu_get_mca_entry(struct amdgpu_device *adev, enum amdgpu_mca_error_type type, 358 int idx, struct mca_bank_entry *entry) 359 { 360 const struct amdgpu_mca_smu_funcs *mca_funcs = adev->mca.mca_funcs; 361 int count; 362 363 switch (type) { 364 case AMDGPU_MCA_ERROR_TYPE_UE: 365 count = mca_funcs->max_ue_count; mca_funcs is dereferenced here. 366 break; 367 case AMDGPU_MCA_ERROR_TYPE_CE: 368 count = mca_funcs->max_ce_count; mca_funcs is dereferenced here. 369 break; 370 default: 371 return -EINVAL; 372 } 373 374 if (idx >= count) 375 return -EINVAL; 376 377 if (mca_funcs && mca_funcs->mca_get_mca_entry) ^^^^^^^^^ Checked too late!
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-26672 scores 7.1 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
Until: 6.7.4
Fixed in: 6.7.4
How to fix this CVE
Update your Linux kernel to version 6.7.4 or later to resolve a null pointer dereference vulnerability in the AMD GPU MCA (Machine Check Architecture) error handling code. This flaw could allow local users with kernel access to trigger a kernel crash or information disclosure through improper pointer validation in the amdgpu_mca_smu_get_mca_entry() function. Apply the update immediately to systems running vulnerable kernel versions.
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 | grep -oE '^[0-9]+\.[0-9]+\.[0-9]+' and confirm it is below 6.7.4
- Step 2: Verify AMD GPU drivers are loaded with: lsmod | grep amdgpu to determine if the vulnerable code path is active on your system
- Step 3: Search kernel logs for null pointer dereference errors related to amdgpu_mca: sudo grep -i 'amdgpu_mca\|NULL pointer\|mca_funcs' /var/log/kern.log or journalctl -k | grep -i amdgpu_mca
- Step 4: After applying the kernel update, verify with: uname -r and confirm the version is 6.7.4 or higher, then reboot to load the patched kernel
FAQ
What is CVE-2024-26672?
This vulnerability is a null pointer dereference in the AMD GPU MCA error handling subsystem of the Linux kernel where a function pointer is used before being validated as non-null, potentially allowing local attackers to crash the kernel or read sensitive memory.
Is CVE-2024-26672 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are known to be available.
What versions of Kernel are affected by CVE-2024-26672?
Linux kernel versions prior to 6.7.4 are affected. All kernels up to and including 6.7.3 contain this vulnerability in the AMD GPU MCA error handling code.
How do I check if my server is vulnerable to CVE-2024-26672?
Run: uname -r and check if the version is below 6.7.4. Additionally, verify AMD GPU support is compiled in with: grep -i CONFIG_DRM_AMDGPU /boot/config-$(uname -r)
Does Defensia detect CVE-2024-26672?
Yes — Defensia's CVE advisory scanner compares installed kernel package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-26672 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-26672. Free for 1 server.
Get started free