PT-2025-17271 · Amd+7 · Amdgpu+7
Published
2025-02-19
·
Updated
2026-04-20
·
CVE-2025-38104
CVSS v3.1
4.7
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel versions prior to 6.12.0
Description
The issue is related to the use of a mutex for RLCG register access in the Linux kernel's amdgpu driver, which can lead to priority inversion in SRIOV environments. This occurs when a low-priority task holds a mutex that a high-priority task needs, causing conflicts and potentially leading to incorrect operations. The
amdgpu virt rlcg reg rw function is particularly critical in this context, as it attempts to acquire the mutex. The call stack indicates that this function is invoked from amdgpu sriov wreg, which in turn is called from gmc v11 0 flush gpu tlb. The bug is identified by the message "[ BUG: Invalid wait context ]", which signifies that a thread is trying to acquire a mutex while in a context that does not allow it to sleep.Recommendations
To resolve the issue, update the Linux kernel to a version that includes the fix for the RLCG register access priority inversion. As a temporary workaround, consider disabling the
amdgpu virt rlcg reg rw function until a patch is available. Restrict access to the vulnerable module amdgpu to minimize the risk of exploitation. Avoid using the amdgpu sriov wreg function in the affected API endpoint until the issue is resolved.Exploit
Fix
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu
Amdgpu