drm/amdkfd: Fix mmap write lock not release
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| Linux Linux |
|
|
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.
From the CVE record · Linux
A lock-handling bug in the Linux kernel’s drm/amdkfd component can leave an mmap write lock held while draining a retry fault, causing a later deadlock and system hang. The input does not describe an attacker, access requirements, or user interaction needed to trigger it.
Anyone running the Linux kernel should check whether their version contains this bug; affected versions are not specified.