Mutex Replacement in AMD GPU Driver for Enhanced Thread Safety
CVE-2025-38104
Summary
A vulnerability in the AMDGPU driver allows for race conditions during RLCG register access within virtualized environments. This issue arises from the improper handling of mutexes, which can lead to priority inversion when multiple threads attempt concurrent access to the GPU registers. By replacing the mutex with a spinlock for RLCG register operations, the AMDGPU driver ensures that register access is serialized, preventing conflicts and ensuring accurate execution flow. The fix addresses the critical need for thread safety, especially in high-performance computing scenarios using SR-IOV.
Affected Version(s)
Linux e864180ee49b4d30e640fd1e1d852b86411420c9 < 1c0378830e42c98acd69e0289882c8637d92f285
Linux e864180ee49b4d30e640fd1e1d852b86411420c9 < 5c1741a0c176ae11675a64cb7f2dd21d72db6b91
Linux e864180ee49b4d30e640fd1e1d852b86411420c9
References
Timeline
Vulnerability published
Vulnerability Reserved