CVE-2025-68174
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-68174 is a race condition vulnerability in the Linux kernel's AMD GPU driver (amdkfd) that can lead to a divide-by-zero kernel crash. The flaw exists in the partition switching logic, where the kfd_processes_table emptiness check is insufficient to prevent concurrent access between a workqueue releasing a KFD process and a partition switch tearing down KFD nodes. It was published on December 16, 2025, and affects the Linux kernel's amdgpu driver. The EPSS score is approximately 0.018% (Low), indicating limited exploitation probability at this time (Feedly).

Technical details

The root cause is a time-of-check/time-of-use (TOCTOU) race condition (CWE-362) in the AMD KFD (Kernel Fusion Driver) partition switching code. When Process A (a workqueue) executes kfd_process_wq_release and accesses kfd_node members, and Process B concurrently triggers a partition switch via amdgpu_xcp_pre_partition_switchamdgpu_amdkfd_device_fini_sw → KFD node teardown, the node can be destroyed while still in use. The existing guard only checks whether kfd_processes_table is empty, but the table entry is removed in kfd_process_notifier_release — before the actual process teardown completes in kfd_process_wq_release — leaving a window where the node is accessed after being freed. The fix introduces an atomic counter kfd_processes_count per kfd_dev that is incremented on KFD process creation and decremented only after kfd_process_wq_release completes, closing the race (Feedly).

Impact

Successful exploitation of this race condition results in a divide-by-zero kernel panic (divide error: 0000 [#1] SMP NOPTI) triggered in kfd_get_num_sdma_engines, causing a system crash and denial of service. The crash occurs in kernel context (workqueue kfd_process_wq), meaning it affects the entire host system rather than a single process. There is no evidence of confidentiality or integrity impact; the primary consequence is availability loss through a kernel crash on systems using AMD GPUs with KFD support (Feedly).

Indicators of compromise

  • Logs: Kernel dmesg output containing divide error: 0000 [#1] SMP NOPTI with a stack trace referencing kfd_get_num_sdma_engines in the amdgpu module and workqueue kfd_process_wq kfd_process_wq_release.
  • Process: Kernel crash (oops/panic) originating from kworker threads associated with kfd_process_wq on systems with AMD GPU hardware.
  • System: Unexpected system reboots or kernel panics on hosts running AMD GPU workloads (e.g., ROCm/HPC environments) coinciding with GPU partition switching operations.

Mitigation and workarounds

The fix has been merged into the Linux kernel stable tree via commits 45da20e00d5da842e17dfc633072b127504f0d0e and 536d80f660ec12058e461f4db387ea42bee9250d. Administrators should update to a patched kernel version that includes these commits. As a workaround, avoiding concurrent KFD process teardown and GPU partition switching operations can reduce exposure. Distributions including SUSE have begun shipping kernel updates addressing this issue (Feedly, Linux Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management