CVE-2025-21729: 
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a race condition vulnerability (CVE-2025-21729) was discovered in the rtw89 WiFi driver. The vulnerability affects the hardware scan cancellation functionality, where the rtwdev->scanning flag is not properly protected by a mutex. This issue was discovered in early 2025 and affects Linux systems using the rtw89 wireless driver (Kernel Git).

Technical details

The vulnerability stems from a race condition where the scanning flag isn't protected by mutex in the cancel_hw_scan operation. When cancel_hw_scan passes the condition check, the hw_scan completion can simultaneously unset the flag and call ieee80211_scan_completed(), which frees local->hw_scan_req. This leads to both a null pointer dereference and a use-after-free condition. The issue was confirmed through KASAN (Kernel Address Sanitizer) detection on a Lenovo system running the affected driver (Kernel Git).

Impact

When exploited, this vulnerability can lead to system crashes through null pointer dereference and use-after-free conditions. The issue specifically affects systems using the rtw89 wireless driver during WiFi scanning operations (Kernel Git).

Exploitability

The vulnerability requires local access to a system running the affected rtw89 driver and can be triggered during WiFi scanning operations. The issue has been confirmed to be reproducible on Lenovo systems with specific hardware configurations (Kernel Git).

Mitigation and workarounds

The issue has been fixed by moving the check condition to a location protected by mutex. The fix was implemented through a patch that modifies the driver's scanning logic to ensure proper synchronization. The solution involves restructuring the code to perform the scanning flag check within the mutex-protected section (Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Affected

sid

linux: 6.12.13-1

Fixed

trixie

linux: 6.12.13-1

Fixed

Ubuntu

Fixed

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux

Not Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Fixed

RHEL 8

kernel-rt.src

Affected

RHEL 9

:appstream:kernel-0:5.14.0-611.5.1.el9_7.src

Fixed

RHEL 10

kernel.src

Affected

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-121876HIGH7.9
  • Linux Kernel logoLinux Kernel
  • kernel-tools-libs-devel
NoNoNov 12, 2026
CVE-2026-99287MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-igx
NoYesNov 10, 2026
CVE-2024-21963MEDIUM6
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesNov 12, 2026
CVE-2026-99288MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • kernel-doc
NoYesNov 10, 2026
CVE-2026-0004MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-uek-debug-modules-wireless
NoYesNov 12, 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

Additional Wiz resources

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