Linux Kernel Userptr Notifier vs Folio Deadlock Vulnerability

Vulnerability

A deadlock vulnerability has been identified in the Linux kernel's Direct Rendering Manager (DRM) user pointer handling. The issue arises when the core kernel's page migration process holds locks on memory folios and simultaneously interacts with their mappings. These mappings are connected to user pointers, triggering notifier callbacks that require additional locking. This scenario can create a deadlock if the migration process and the notifier callback contend for folio locks at the same time. Fortunately, the notifier lock is not essential for marking pages as accessed or dirty, as this should have already been handled by the HMM fault. The vulnerability has been addressed by removing the unnecessary locking.

Impact

Exploitation of this vulnerability can lead to a deadlock situation, where the folio locks are held up by the notifier lock, causing a standstill in the kernel's processing.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.5
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.