Linux
drm/gpusvm: Fix unbalanced unlock in drm_gpusvm_scan_mm()
In the Linux kernel, the following vulnerability has been resolved: drm/gpusvm: Fix unbalanced unlock in drm_gpusvm_scan_mm() There is a unbalanced lock/unlock to gpusvm notifier lock: [ 931.045868] ===================================== [ 931.046509] WARNING: bad unlock balance detected! [ 931.047149] 6.19.0-rc6+xe-**************** #9 Tainted: G U [ 931.048150] ------------------------------------- [ 931.048790] kworker/u5:0/51 is trying to release lock (&gpusvm->notifier_lock) at: [ 931.049801] [<ffffffffa090c0d8>] drm_gpusvm_scan_mm+0x188/0x460 [drm_gpusvm_helper] [ 931.050802] but there are no more locks to release! [ 931.051463] The drm_gpusvm_notifier_unlock() sits under err_free label and the first jump to err_free is just before calling the drm_gpusvm_notifier_lock() causing unbalanced unlock.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f1d08a5864822684773105c60528e2abb577ca6c, < 8efaa47a871662a8c21b819cec60786f7ef17ab4
- >= f1d08a5864822684773105c60528e2abb577ca6c, < d287dee565c3c32e1ed76ec1847af46809c29b90
Fixed in 8efaa47a871662a8c21b819cec60786f7ef17ab4, d287dee565c3c32e1ed76ec1847af46809c29b90
- 7.0
Fixed in 0, 7.0.10, 7.1
Mitigation
Upgrade Linux to 8efaa47a871662a8c21b819cec60786f7ef17ab4 or d287dee565c3c32e1ed76ec1847af46809c29b90 or later.
Upgrade Linux to 0 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.