Vulnerability · Published Apr 1, 2025 · Assigned by Linux
CVE-2025-21979wifi: cfg80211: cancel wiphy_work before freeing wiphy
High 7.8
In plain English
A high-severity use-after-free in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | kernel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-doc | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-headers | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-debug | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-debug-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-debug-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-64k-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug-kvm | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-kvm | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-tools | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-uki-virt-addons | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | libperf | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | perf | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | python3-perf | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | rtla | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| AlmaLinux:9 | rv | 5.14.0-570.22.1.el9_6 | ALSA-2025:9080 |
| Debian:12 | linux | 6.1.133-1 | DEBIAN-CVE-2025-21979 |
| Debian:13 | linux | 6.12.20-1 | DEBIAN-CVE-2025-21979 |
| Debian:14 | linux | 6.12.20-1 | DEBIAN-CVE-2025-21979 |
| Rocky Linux:10 | kernel | 0:6.12.0-55.17.1.el10_0 | RLSA-2025:9079 |
| Ubuntu:24.04:LTS | linux | 6.8.0-84.84 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1039.41 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1039.41~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1038.44 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | 6.11.0-1018.18~24.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1036.42~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | 6.8.0-1025.27 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1040.42 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | 6.11.0-1016.16~24.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1040.42~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1036.40 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1023.25 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | 6.11.0-28.28~24.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-85.85~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1037.37 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1037.37~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-84.84.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | 6.11.0-1015.16~24.04.2 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-84.84.1~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1039.42 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | 6.11.0-1012.12 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1039.42~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1039.42.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1010.10 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | 6.11.0-1024.24 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1037.38 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1037.38~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1039.43 | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-84.84~22.04.1 | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-21979 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1018.19 | UBUNTU-CVE-2025-21979 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ddb1bfbf4ab5c753954d0cd728253b642934a9f2 – before 8930a3e1568cf534f86c8ed2def817c6d0528fc13fcc6d7d5f40dad56dee7bde787b7e23edd4b93c – before 0272d4af7f92997541d8bbf4c51918b93ded6ee2a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 – before 75d262ad3c36d52852d764588fcd887f0fcd9138a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 – before a5158d67bff06cb6fea31be39aeb319fd908ed8ea3ee4dc84c4e9d14cb34dad095fd678127aca5b6 – before dea22de162058216a90f2706f0d0b36f0ff309fda3ee4dc84c4e9d14cb34dad095fd678127aca5b6 – before 72d520476a2fab6f3489e8388ab524985d6c4b906.1.57 – before 6.1.132 |
| Linux | Linux | 6.5 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/8930a3e1568cf534f86c8ed2def817c6d0528fc1
- https://git.kernel.org/stable/c/0272d4af7f92997541d8bbf4c51918b93ded6ee2
- https://git.kernel.org/stable/c/75d262ad3c36d52852d764588fcd887f0fcd9138
- https://git.kernel.org/stable/c/a5158d67bff06cb6fea31be39aeb319fd908ed8e
- https://git.kernel.org/stable/c/dea22de162058216a90f2706f0d0b36f0ff309fd
- https://git.kernel.org/stable/c/72d520476a2fab6f3489e8388ab524985d6c4b90
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html