CVE-2025-21664
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21664 affects the Linux kernel's device mapper thin provisioning module (dm-thin). The vulnerability was discovered on January 21, 2025, and involves a race condition in the get_first_thin() function. The issue occurs when the function performs list operations that are not properly synchronized in RCU-safe code, potentially leading to system crashes (Kernel Git).

Technical details

The vulnerability stems from improper list handling in the get_first_thin() function within the dm-thin module. The function incorrectly relies on a list_empty() -> list_first() sequence in RCU-safe code, where each function performs its own READ_ONCE() of the list head. This can result in a race condition where list_empty() sees a valid list entry, but the subsequent list_first() sees a different view of list head state after modification. The issue manifests as a GP fault in the process_deferred_bios path, accompanied by a refcount_t saturation warning and a UBSAN error for out-of-bounds CPUID access in the queued spinlock (Kernel Git).

Impact

When exploited, this vulnerability can cause a system crash due to a GP fault in the process_deferred_bios path. The issue occurs when the thin_dtr call removes a thin_c from the active thins list at a critical moment, leading to dereferencing invalid memory addresses and potential system instability (Kernel Git).

Mitigation and workarounds

The issue has been fixed by modifying the get_first_thin() function to use list_first_or_null_rcu() instead of the previous list_empty() -> list_first() sequence. This new implementation performs a single READ_ONCE() and returns NULL if the list is empty. The fix has been tested against the devicemapper test suite's thin-provisioning suites for delete and suspend operations with no regressions observed. Fixed versions are available in Linux kernel 6.1.128-1 for Debian bookworm and later versions (Debian Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management