CVE-2025-38104
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's AMD GPU driver (CVE-2025-38104) was discovered and disclosed on April 18, 2025. The issue involves the RLCG register access mechanism in the AMDGPU driver, specifically affecting virtual functions in a virtualized environment (NVD).

Technical details

The vulnerability stems from a priority inversion issue in the AMDGPU driver's RLCG register access implementation. The problem occurs when a thread holding a spinlock attempts to acquire a mutex, particularly in the amdgpu_virt_rlcg_reg_rw function called from the fast code path. This creates an invalid wait context, manifesting as a 'BUG: Invalid wait context' error in the system (Red Hat). The issue has been assigned a CVSS v3.1 base score of 5.5 with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (Red Hat).

Impact

The vulnerability can lead to race conditions when multiple threads or Virtual Functions (VFs) attempt to access the same registers simultaneously. This primarily affects systems using AMD GPUs in virtualized environments with SR-IOV enabled, potentially causing system instability or denial of service conditions (NVD).

Mitigation and workarounds

The fix involves replacing the mutex with a spinlock for RLCG register access to prevent priority inversion in SR-IOV environments. This has been implemented in various Linux distributions, with some versions already patched and others still vulnerable (Debian Tracker).

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-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 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