CVE-2025-40332

Summary

In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: Fix mmap write lock not release

If mmap write lock is taken while draining retry fault, mmap write lock is not released because svm_range_restore_pages calls mmap_read_unlock then returns. This causes deadlock and system hangs later because mmap read or write lock cannot be taken.

Downgrade mmap write lock to read lock if draining retry fault fix this bug.

Affected Software

VendorProductVersion RangeStatus
LinuxLinuxe64be12f8401819662e608efa247638b61d023cd < e2105ba1c262dcaa9573f11844b6e1e1ca762c3faffected
LinuxLinuxf844732e3ad9c4b78df7436232949b8d2096d1a6 < f7569ef1cf978aa87aa81b5e9bf40a77497f3685affected
LinuxLinuxf844732e3ad9c4b78df7436232949b8d2096d1a6 < 7574f30337e19045f03126b4c51f525b84e5049eaffected
LinuxLinux177660d7ecb34298dab5f0d1efc7e8b02f934551affected
LinuxLinux5a3c09bd25cc0a55ec9c048710d379fa2c84b4e7affected
LinuxLinux6.12.24 < 6.12.58affected
LinuxLinux6.13.12 < 6.14affected
LinuxLinux6.14.3 < 6.15affected
LinuxLinux6.15affected
LinuxLinux0 < 6.15unaffected
LinuxLinux6.12.58 <= 6.12.*unaffected
LinuxLinux6.17.8 <= 6.17.*unaffected
LinuxLinux6.18 <= *unaffected

Weaknesses

References