Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21684

MEDIUM 5.5EPSS 8%

gpio: xilinx: Convert gpio_lock to raw spinlock

Mitigation

  • Upgrade Linux to 9860370c2172704b6b4f0075a0c2a29fd84af96a or later.

Who should check

  • Anyone running Linux >= a32c7caea292c4d1e417eae6e5a348d187546acf, < d25041d4a3b2af64c888cf762362b2528ba59294; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < f0ed2d0abc021f56fa27dc6d0770535c1851a43b; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < b0111650ee596219bb5defa0ce1a1308e6e77ccf; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9c035105c5537d2ecad6b9415e9417a1ffbd0a62; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9860370c2172704b6b4f0075a0c2a29fd84af96a
  • Anyone running Linux 5.12

Vulnerability facts

Affected
Linux >= a32c7caea292c4d1e417eae6e5a348d187546acf, < d25041d4a3b2af64c888cf762362b2528ba59294; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < f0ed2d0abc021f56fa27dc6d0770535c1851a43b; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < b0111650ee596219bb5defa0ce1a1308e6e77ccf; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9c035105c5537d2ecad6b9415e9417a1ffbd0a62; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9860370c2172704b6b4f0075a0c2a29fd84af96a; Linux 5.12
Fixed in
Linux 9c035105c5537d2ecad6b9415e9417a1ffbd0a62, Linux 9860370c2172704b6b4f0075a0c2a29fd84af96a
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-667
Published
Modified

Description

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. Therefore, we must also use a raw spinlock for our own internal locking. This fixes the following lockdep splat: [ 5.349336] ============================= [ 5.353349] [ BUG: Invalid wait context ] [ 5.357361] 6.13.0-rc5+ #69 Tainted: G W [ 5.363031] ----------------------------- [ 5.367045] kworker/u17:1/44 is trying to lock: [ 5.371587] ffffff88018b02c0 (&chip->gpio_lock){....}-{3:3}, at: xgpio_irq_unmask (drivers/gpio/gpio-xilinx.c:433 (discriminator 8)) [ 5.380079] other info that might help us debug this: [ 5.385138] context-{5:5} [ 5.387762] 5 locks held by kworker/u17:1/44: [ 5.392123] #0: ffffff8800014958 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:3204) [ 5.402260] #1: ffffffc082fcbdd8 (deferred_probe_work){+.+.}-{0:0}, at: process_one_work (kernel/workqueue.c:3205) [ 5.411528] #2: ffffff880172c900 (&dev->mutex){....}-{4:4}, at: __device_attach (drivers/base/dd.c:1006) [ 5.419929] #3: ffffff88039c8268 (request_class#2){+.+.}-{4:4}, at: __setup_irq (kernel/irq/internals.h:156 kernel/irq/manage.c:1596) [ 5.428331] #4: ffffff88039c80c8 (lock_class#2){....}-{2:2}, at: __setup_irq (kernel/irq/manage.c:1614) [ 5.436472] stack backtrace: [ 5.439359] CPU: 2 UID: 0 PID: 44 Comm: kworker/u17:1 Tainted: G W 6.13.0-rc5+ #69 [ 5.448690] Tainted: [W]=WARN [ 5.451656] Hardware name: xlnx,zynqmp (DT) [ 5.455845] Workqueue: events_unbound deferred_probe_work_func [ 5.461699] Call trace: [ 5.464147] show_stack+0x18/0x24 C [ 5.467821] dump_stack_lvl (lib/dump_stack.c:123) [ 5.471501] dump_stack (lib/dump_stack.c:130) [ 5.474824] __lock_acquire (kernel/locking/lockdep.c:4828 kernel/locking/lockdep.c:4898 kernel/locking/lockdep.c:5176) [ 5.478758] lock_acquire (arch/arm64/include/asm/percpu.h:40 kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851 kernel/locking/lockdep.c:5814) [ 5.482429] _raw_spin_lock_irqsave (include/linux/spinlock_api_smp.h:111 kernel/locking/spinlock.c:162) [ 5.486797] xgpio_irq_unmask (drivers/gpio/gpio-xilinx.c:433 (discriminator 8)) [ 5.490737] irq_enable (kernel/irq/internals.h:236 kernel/irq/chip.c:170 kernel/irq/chip.c:439 kernel/irq/chip.c:432 kernel/irq/chip.c:345) [ 5.494060] __irq_startup (kernel/irq/internals.h:241 kernel/irq/chip.c:180 kernel/irq/chip.c:250) [ 5.497645] irq_startup (kernel/irq/chip.c:270) [ 5.501143] __setup_irq (kernel/irq/manage.c:1807) [ 5.504728] request_threaded_irq (kernel/irq/manage.c:2208)

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= a32c7caea292c4d1e417eae6e5a348d187546acf, < d25041d4a3b2af64c888cf762362b2528ba59294; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < f0ed2d0abc021f56fa27dc6d0770535c1851a43b; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < b0111650ee596219bb5defa0ce1a1308e6e77ccf; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9c035105c5537d2ecad6b9415e9417a1ffbd0a62; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9860370c2172704b6b4f0075a0c2a29fd84af96a—cvelist
Linux5.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-21684. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21684.md
Affected: Linux >= a32c7caea292c4d1e417eae6e5a348d187546acf, < d25041d4a3b2af64c888cf762362b2528ba59294; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < f0ed2d0abc021f56fa27dc6d0770535c1851a43b; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < b0111650ee596219bb5defa0ce1a1308e6e77ccf; >= a32c7caea292c4d1e417eae…
Fixed in: Linux 9c035105c5537d2ecad6b9415e9417a1ffbd0a62, Linux 9860370c2172704b6b4f0075a0c2a29fd84af96a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-21684 being exploited?

There is no confirmed exploitation: CVE-2025-21684 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-21684?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-21684?

Linux >= a32c7caea292c4d1e417eae6e5a348d187546acf, < d25041d4a3b2af64c888cf762362b2528ba59294; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < f0ed2d0abc021f56fa27dc6d0770535c1851a43b; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < b0111650ee596219bb5defa0ce1a1308e6e77ccf; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9c035105c5537d2ecad6b9415e9417a1ffbd0a62; >= a32c7caea292c4d1e417eae6e5a348d187546acf, < 9860370c2172704b6b4f0075a0c2a29fd84af96a; Linux 5.12.

Is there a fix for CVE-2025-21684?

Yes. Fixed in Linux 9c035105c5537d2ecad6b9415e9417a1ffbd0a62, Linux 9860370c2172704b6b4f0075a0c2a29fd84af96a. Upgrade Linux to 9860370c2172704b6b4f0075a0c2a29fd84af96a or later.

How do I check if I'm affected by CVE-2025-21684?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors