Critical Spinlock Vulnerability in Linux Kernel (CVE-2025-21684)
Summary
CVE-2025-21684: In the Linux kernel, the following vulnerability has been resolved: gpio: xilinx: Convert gpio_lock to raw spinlock irq_chip functions may be called in raw spinlock context. Affects linux versions < 6.1.129-1. Fixed in 6.1.129-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It is known for its stability, performance, and security features. However, like any complex software, it is susceptible to vulnerabilities. The specific issue at hand involves the GPIO (General Purpose Input/Output) subsystem, particularly in the Xilinx driver, which has been found to improperly handle locking mechanisms, leading to potential system instability.
Vulnerability Detail
The vulnerability, identified as CVE-2025-21684, arises from the use of a standard spinlock instead of a raw spinlock in the GPIO Xilinx driver. This misconfiguration can lead to invalid wait contexts when IRQ (interrupt request) chip functions are called in a raw spinlock context. The consequences may include system crashes, unexpected behavior, or denial of service, as the kernel may enter an inconsistent state due to improper locking. The vulnerability was detected through lockdep, a kernel debugging tool that helps identify locking issues.
How To Fix
Minimum fixed version
6.1.129-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds provided for this vulnerability. It is recommended to apply the patch as soon as it becomes available.
Conclusion
CVE-2025-21684 is a critical vulnerability in the Linux kernel that affects the GPIO Xilinx driver due to improper locking mechanisms. Users are encouraged to update their systems to the patched version as soon as it becomes available to avoid potential system instability.
See every vulnerability recorded for linux →
FAQ
CVE-2025-21684 is a vulnerability in the Linux kernel related to improper locking in the GPIO Xilinx driver, which can lead to system instability.
You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.
The risks include system crashes, unexpected behavior, and denial of service due to improper locking mechanisms in the kernel.
You can update your Linux kernel by running 'sudo apt-get update && sudo apt-get install linux' in the terminal for Debian-based systems.
Currently, there are no specific workarounds. It is advisable to monitor for updates and apply them as soon as they are released.
Related vulnerabilities
Recent vulnerabilities recorded for linux.