Linux Kernel GPIO Xilinx Raw Spinlock Vulnerability

Vulnerability

A vulnerability in the Linux kernel's GPIO Xilinx driver has been addressed by converting the GPIO lock to a raw spinlock. This change was necessary because IRQ chip functions can be called in a raw spinlock context, requiring internal locking to also use raw spinlocks. The vulnerability was identified by a lockdep splat, indicating an invalid wait context issue. The problem arose when a worker thread attempted to acquire a lock while holding other locks that restricted the wait context, leading to a potential deadlock situation.

Impact

The vulnerability could lead to a deadlock by allowing a worker thread to hold multiple locks in a non-wait context, creating a conflict when trying to acquire additional locks.

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
5.3
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.