Linux
wifi: cfg80211: cancel wiphy_work before freeing wiphy
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ddb1bfbf4ab5c753954d0cd728253b642934a9f2, < 8930a3e1568cf534f86c8ed2def817c6d0528fc1
- >= 3fcc6d7d5f40dad56dee7bde787b7e23edd4b93c, < 0272d4af7f92997541d8bbf4c51918b93ded6ee2
- >= a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, < 75d262ad3c36d52852d764588fcd887f0fcd9138
- >= a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, < a5158d67bff06cb6fea31be39aeb319fd908ed8e
- >= a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, < dea22de162058216a90f2706f0d0b36f0ff309fd
- >= a3ee4dc84c4e9d14cb34dad095fd678127aca5b6, < 72d520476a2fab6f3489e8388ab524985d6c4b90
- >= 6.1.57, < 6.1.132
Fixed in 8930a3e1568cf534f86c8ed2def817c6d0528fc1, 0272d4af7f92997541d8bbf4c51918b93ded6ee2, 75d262ad3c36d52852d764588fcd887f0fcd9138, a5158d67bff06cb6fea31be39aeb319fd908ed8e, dea22de162058216a90f2706f0d0b36f0ff309fd, 72d520476a2fab6f3489e8388ab524985d6c4b90, 6.1.132
- 6.5
Fixed in 0, 6.1.132, 6.6.84, 6.12.20, 6.13.8, 6.14
Mitigation
Upgrade Linux to 8930a3e1568cf534f86c8ed2def817c6d0528fc1 or 0272d4af7f92997541d8bbf4c51918b93ded6ee2 or 75d262ad3c36d52852d764588fcd887f0fcd9138 or a5158d67bff06cb6fea31be39aeb319fd908ed8e or dea22de162058216a90f2706f0d0b36f0ff309fd or 72d520476a2fab6f3489e8388ab524985d6c4b90 or 6.1.132 or later.
Upgrade Linux to 0 or 6.1.132 or 6.6.84 or 6.12.20 or 6.13.8 or 6.14 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.