Deadlock Vulnerability in Linux Kernel Affecting AMD Graphics Drivers
CVE-2025-40332
What is CVE-2025-40332?
A deadlock vulnerability exists in the Linux kernel due to an improper handling of mmap write locks within the AMD graphics driver. When an mmap write lock is obtained during a drain of retry fault, it fails to release, resulting in potential system hangs and impaired performance. This issue arises from the way the SVM range restore pages function interacts with the locking mechanisms, specifically failing to downgrade the mmap write lock to a read lock. Consequently, subsequent attempts to acquire the mmap read or write lock can lead to critical deadlock scenarios.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 7574f30337e19045f03126b4c51f525b84e5049e