CVE-2025-21979
wifi: cfg80211: cancel wiphy_work before freeing wiphy
Check your servers for CVE-2025-21979
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21979 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ddb1bfbf4ab5c753954d0cd728253b642934a9f2, before 8930a3e1568cf534f86c8ed2def817c6d0528fc1 affected from 3fcc6d7d5f40dad56dee7bde787b7e23edd4b93c, before 0272d4af7f92997541d8bbf4c51918b93ded6ee2 affected from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, before 75d262ad3c36d52852d764588fcd887f0fcd9138 affected from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, before a5158d67bff06cb6fea31be39aeb319fd908ed8e affected from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, before dea22de162058216a90f2706f0d0b36f0ff309fd affected from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, before 72d520476a2fab6f3489e8388ab524985d6c4b90 affected from 6.1.57, before 6.1.132
Other versions: unaffected
|
| Linux |
affected 6.5 unaffected before 6.5 unaffected from 6.1.132 up to and including 6.1.* unaffected from 6.6.84 up to and including 6.6.* unaffected from 6.12.20 up to and including 6.12.* unaffected from 6.13.8 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21979 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21979
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21979
trivy image --scanners vuln IMAGE | grep CVE-2025-21979
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/8930a3e1568cf534f86c8ed2def817c6d0528fc1 git.kernel.org
- https://git.kernel.org/stable/c/0272d4af7f92997541d8bbf4c51918b93ded6ee2 git.kernel.org
- https://git.kernel.org/stable/c/75d262ad3c36d52852d764588fcd887f0fcd9138 git.kernel.org
- https://git.kernel.org/stable/c/a5158d67bff06cb6fea31be39aeb319fd908ed8e git.kernel.org
- https://git.kernel.org/stable/c/dea22de162058216a90f2706f0d0b36f0ff309fd git.kernel.org
- https://git.kernel.org/stable/c/72d520476a2fab6f3489e8388ab524985d6c4b90 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
Source: the record CVE-2025-21979 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse