All reports
Medium

kernel: wifi: cfg80211: cancel wiphy_work before freeing wiphy

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-21979

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-22

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: cancel wiphy_work before freeing wiphy A wiphy_work can be queued from the moment the wiphy is allocated and initialized (i.e. wiphy_new_nm). When a wiphy_work is queued, the rdev::wiphy_work is getting queued. If wiphy_free is called before the rdev::wiphy_work had a chance to run, the wiphy memory will be freed, and then when it eventally gets to run it'll use invalid memory. Fix this by canceling the work before freeing the wiphy.

A flaw was found in the Linux kernel's cfg80211 wireless configuration subsystem. This flaw allows a local attacker to cause a Denial of Service (DoS) or potentially achieve arbitrary code execution via a use-after-free condition. When a wireless physical device structure is deallocated before queued background tasks are canceled, the kernel attempts to access the already freed memory once the task executes, leading to a system crash.