CVE-2025-21684: Linux kernel · gpio: xilinx: Convert gpio_lock to raw spinlock
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 01:10 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 9 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix is available that converts gpio_lock to a raw spinlock in the Linux kernel's Xilinx GPIO driver. Users should update their Linux kernel to a version that includes this fix. No other mitigation is indicated.
Description
CVE-2025-21684 is a medium severity vulnerability in the Linux kernel's Xilinx GPIO driver. The issue arises because irq_chip functions may be called in raw spinlock context, but the driver used a regular spinlock instead of a raw spinlock for internal locking. This mismatch can cause lockdep warnings and invalid wait context bugs, potentially leading to kernel instability or crashes. The vulnerability has been fixed by converting gpio_lock to a raw spinlock to match the irq_chip context requirements.
References
- nvd.nist.gov/vuln/detail/CVE-2025-21684 (opens in a new tab)
- git.kernel.org/stable/c/9860370c2172704b6b4f0075a0c2a29fd84af96a (opens in a new tab)
- git.kernel.org/stable/c/9c035105c5537d2ecad6b9415e9417a1ffbd0a62 (opens in a new tab)
- git.kernel.org/stable/c/b0111650ee596219bb5defa0ce1a1308e6e77ccf (opens in a new tab)
- git.kernel.org/stable/c/d25041d4a3b2af64c888cf762362b2528ba59294 (opens in a new tab)
- git.kernel.org/stable/c/f0ed2d0abc021f56fa27dc6d0770535c1851a43b (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00028.html (opens in a new tab)