CVE-2021-46921
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-46921 is a vulnerability in the Linux kernel's locking mechanism, specifically in the queued read-write lock (qrwlock) implementation. The issue was discovered in the queued_write_lock_slowpath() function where there was an ordering problem in the lock acquisition process (Kernel Commit).

Technical details

The vulnerability occurs because while the code is executed with the wait_lock held, a reader can acquire the lock without holding wait_lock. The writer side checks the value with atomic_cond_read_acquire(), but only truly acquires the lock when the compare-and-exchange completes successfully. This creates a window between the acquire and the cmpxchg operations that exposes an A-B-A problem, allowing reads following the lock acquisition to observe values speculatively before the write lock is truly acquired (Kernel Commit).

Impact

The vulnerability can lead to race conditions where a reader might observe incorrect values due to speculative execution before the write lock is properly acquired. This was specifically observed in epoll where a reader performing an exchange operation while holding the read lock could result in the writer seeing values change unexpectedly (Kernel Commit).

Mitigation and workarounds

The issue has been fixed by switching the cmpxchg to use acquire semantics and changing the atomic_cond_read to use relaxed semantics. The fix was implemented in the Linux kernel through a patch that modifies the queued_write_lock_slowpath() function (Kernel Commit).

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-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 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