CVE-2025-21979
JSON

7.8high

wifi: cfg80211: cancel wiphy_work before freeing wiphy

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom ddb1bfbf4ab5c753954d0cd728253b642934a9f2 before 8930a3e1568cf534f86c8ed2def817c6d0528fc1, from 3fcc6d7d5f40dad56dee7bde787b7e23edd4b93c before 0272d4af7f92997541d8bbf4c51918b93ded6ee2, from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 before 75d262ad3c36d52852d764588fcd887f0fcd9138, from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 before a5158d67bff06cb6fea31be39aeb319fd908ed8e, from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 before dea22de162058216a90f2706f0d0b36f0ff309fd, from a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 before 72d520476a2fab6f3489e8388ab524985d6c4b90, from 6.1.57 before 6.1.132, 6.5
Not affected: before 6.5, from 6.1.132 up to 6.1.*, from 6.6.84 up to 6.6.*, from 6.12.20 up to 6.12.*, from 6.13.8 up to 6.13.*, from 6.14 up to *
CVE List
linux linux_kernelfrom 6.1.57 before 6.1.132, from 6.5 before 6.6.84, from 6.7 before 6.12.20, from 6.13 before 6.13.8, 6.14NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: cfg80211: cancelar wiphy_work antes de liberar wiphy. Un wiphy_work puede ponerse en cola desde el momento en que se asigna e inicializa el wiphy (es decir, wiphy_new_nm). Cuando se pone en cola un wiphy_work, también se pone en cola rdev::wiphy_work. Si se llama a wiphy_free antes de que rdev::wiphy_work se ejecute, se liberará la memoria del wiphy y, cuando finalmente se ejecute, usará memoria no válida. Para solucionar esto, cancele el trabajo antes de liberar el wiphy.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21979 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-21979 changed 2026-06-17Public domain