CVE-2025-21979

wifi: cfg80211: cancel wiphy_work before freeing wiphy

High · published April 1, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
9.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00198 · 9.1th percentile
Published
2025-04-01T15:47Z
EPSS history
Timeline
  • 01 APR 15:47Z
    wifi: cfg80211: cancel wiphy_work before freeing wiphy
    cvelistv5