CVE-2025-21979

wifi: cfg80211: cancel wiphy_work before freeing wiphy

State
Published
Severity
7.8 High
Published
Apr 1, 2025
Updated
Aug 5, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • ddb1bfbf4ab5c753954d0cd728253b642934a9f2 to before 8930a3e1568cf534f86c8ed2def817c6d0528fc1Affected
  • 3fcc6d7d5f40dad56dee7bde787b7e23edd4b93c to before 0272d4af7f92997541d8bbf4c51918b93ded6ee2Affected
  • a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 to before 75d262ad3c36d52852d764588fcd887f0fcd9138Affected
  • a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 to before a5158d67bff06cb6fea31be39aeb319fd908ed8eAffected
  • a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 to before dea22de162058216a90f2706f0d0b36f0ff309fdAffected
  • a3ee4dc84c4e9d14cb34dad095fd678127aca5b6 to before 72d520476a2fab6f3489e8388ab524985d6c4b90Affected
  • 6.1.57 to before 6.1.132Affected
LinuxLinux
  • 6.5Affected
  • before 6.5Not affected
  • 6.1.132 through 6.1.*Not affected
  • 6.6.84 through 6.6.*Not affected
  • 6.12.20 through 6.12.*Not affected
  • 6.13.8 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.