# CVE-2022-50881: wifi: ath9k: Fix use-after-free in ath9k\_hif\_usb\_disconnect()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **Published:** 2025-12-30T12:23:20.343Z
- **Modified:** 2026-06-17T05:24:20.723Z

## Who should check

- Anyone running Linux \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 99ff971b62e5bd5dee65bbe9777375206f5db791; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 634a5471a6bd774c0d0fa448dfa6ec593e899ec9; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 1f137c634a8c8faba648574f687805641e62f92e; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< de15e8bbd9eb26fe94a06d0ec7be82dc490eb729; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< f099c5c9e2ba08a379bd354a82e05ef839ae29ac; 5c42f9bfb4c22898ed3d2806d75e2e58522a5edd; 44736603a7099d2a9b48c669e43a689588e272a5; 406a2fbfabbf7ed9ed21884a82c07fabc6fe0b68; 66a4ca83d50bb38c814190af2188868153cce5de; 3eb802924486a923585b344340a5536d91989a45; …
- Anyone running Linux 5.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: ath9k: Fix use-after-free in ath9k\_hif\_usb\_disconnect()

This patch fixes a use-after-free in ath9k that occurs in
ath9k\_hif\_usb\_disconnect() when ath9k\_destroy\_wmi() is trying to access
'drv\_priv' that has already been freed by ieee80211\_free\_hw(), called by
ath9k\_htc\_hw\_deinit(). The patch moves ath9k\_destroy\_wmi() before
ieee80211\_free\_hw(). Note that urbs from the driver should be killed
before freeing 'wmi' with ath9k\_destroy\_wmi() as their callbacks will
access 'wmi'.

Found by a modified version of syzkaller.

==================================================================
BUG: KASAN: use-after-free in ath9k\_destroy\_wmi+0x38/0x40
Read of size 8 at addr ffff8881069132a0 by task kworker/0:1/7

CPU: 0 PID: 7 Comm: kworker/0:1 Tainted: G O 5.14.0+ \#131
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014
Workqueue: usb\_hub\_wq hub\_event
Call Trace:
 dump\_stack\_lvl+0x8e/0xd1
 print\_address\_description.constprop.0.cold+0x93/0x334
 ? ath9k\_destroy\_wmi+0x38/0x40
 ? ath9k\_destroy\_wmi+0x38/0x40
 kasan\_report.cold+0x83/0xdf
 ? ath9k\_destroy\_wmi+0x38/0x40
 ath9k\_destroy\_wmi+0x38/0x40
 ath9k\_hif\_usb\_disconnect+0x329/0x3f0
 ? ath9k\_hif\_usb\_suspend+0x120/0x120
 ? usb\_disable\_interface+0xfc/0x180
 usb\_unbind\_interface+0x19b/0x7e0
 ? usb\_autoresume\_device+0x50/0x50
 device\_release\_driver\_internal+0x44d/0x520
 bus\_remove\_device+0x2e5/0x5a0
 device\_del+0x5b2/0xe30
 ? \_\_device\_link\_del+0x370/0x370
 ? usb\_remove\_ep\_devs+0x43/0x80
 ? remove\_intf\_ep\_devs+0x112/0x1a0
 usb\_disable\_device+0x1e3/0x5a0
 usb\_disconnect+0x267/0x870
 hub\_event+0x168d/0x3950
 ? rcu\_read\_lock\_sched\_held+0xa1/0xd0
 ? hub\_port\_debounce+0x2e0/0x2e0
 ? check\_irq\_usage+0x860/0xf20
 ? drain\_workqueue+0x281/0x360
 ? lock\_release+0x640/0x640
 ? rcu\_read\_lock\_sched\_held+0xa1/0xd0
 ? rcu\_read\_lock\_bh\_held+0xb0/0xb0
 ? lockdep\_hardirqs\_on\_prepare+0x273/0x3e0
 process\_one\_work+0x92b/0x1460
 ? pwq\_dec\_nr\_in\_flight+0x330/0x330
 ? rwlock\_bug.part.0+0x90/0x90
 worker\_thread+0x95/0xe00
 ? \_\_kthread\_parkme+0x115/0x1e0
 ? process\_one\_work+0x1460/0x1460
 kthread+0x3a1/0x480
 ? set\_kthread\_struct+0x120/0x120
 ret\_from\_fork+0x1f/0x30

The buggy address belongs to the page:
page:ffffea00041a44c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106913
flags: 0x200000000000000(node=0\|zone=2)
raw: 0200000000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page\_owner tracks the page as freed
page last allocated via order 3, migratetype Unmovable, gfp\_mask 0x40dc0(GFP\_KERNEL\|\_\_GFP\_COMP\|\_\_GFP\_ZERO), pid 7, ts 38347963444, free\_ts 41399957635
 prep\_new\_page+0x1aa/0x240
 get\_page\_from\_freelist+0x159a/0x27c0
 \_\_alloc\_pages+0x2da/0x6a0
 alloc\_pages+0xec/0x1e0
 kmalloc\_order+0x39/0xf0
 kmalloc\_order\_trace+0x19/0x120
 \_\_kmalloc+0x308/0x390
 wiphy\_new\_nm+0x6f5/0x1dd0
 ieee80211\_alloc\_hw\_nm+0x36d/0x2230
 ath9k\_htc\_probe\_device+0x9d/0x1e10
 ath9k\_htc\_hw\_init+0x34/0x50
 ath9k\_hif\_usb\_firmware\_cb+0x25f/0x4e0
 request\_firmware\_work\_func+0x131/0x240
 process\_one\_work+0x92b/0x1460
 worker\_thread+0x95/0xe00
 kthread+0x3a1/0x480
page last free stack trace:
 free\_pcp\_prepare+0x3d3/0x7f0
 free\_unref\_page+0x1e/0x3d0
 device\_release+0xa4/0x240
 kobject\_put+0x186/0x4c0
 put\_device+0x20/0x30
 ath9k\_htc\_disconnect\_device+0x1cf/0x2c0
 ath9k\_htc\_hw\_deinit+0x26/0x30
 ath9k\_hif\_usb\_disconnect+0x2d9/0x3f0
 usb\_unbind\_interface+0x19b/0x7e0
 device\_release\_driver\_internal+0x44d/0x520
 bus\_remove\_device+0x2e5/0x5a0
 device\_del+0x5b2/0xe30
 usb\_disable\_device+0x1e3/0x5a0
 usb\_disconnect+0x267/0x870
 hub\_event+0x168d/0x3950
 process\_one\_work+0x92b/0x1460

Memory state around the buggy address:
 ffff888106913180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888106913200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
\>ffff888
---truncated---

## Affected and fixed versions

- Linux: \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 99ff971b62e5bd5dee65bbe9777375206f5db791; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 634a5471a6bd774c0d0fa448dfa6ec593e899ec9; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 1f137c634a8c8faba648574f687805641e62f92e; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< de15e8bbd9eb26fe94a06d0ec7be82dc490eb729; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< f099c5c9e2ba08a379bd354a82e05ef839ae29ac; 5c42f9bfb4c22898ed3d2806d75e2e58522a5edd; 44736603a7099d2a9b48c669e43a689588e272a5; 406a2fbfabbf7ed9ed21884a82c07fabc6fe0b68; 66a4ca83d50bb38c814190af2188868153cce5de; 3eb802924486a923585b344340a5536d91989a45; … (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50881. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50881.md
Affected: Linux >= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, < 99ff971b62e5bd5dee65bbe9777375206f5db791; >= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, < 634a5471a6bd774c0d0fa448dfa6ec593e899ec9; >= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, < 1f137c634a8c8faba648574f687805641e62f92e; >= abeaa85054ff8cfe8b99aaf…
Fixed in: Linux 99ff971b62e5bd5dee65bbe9777375206f5db791, Linux 634a5471a6bd774c0d0fa448dfa6ec593e899ec9, Linux 1f137c634a8c8faba648574f687805641e62f92e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50881 being exploited?

There is no confirmed exploitation: CVE-2022-50881 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2022-50881?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50881?

Linux \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 99ff971b62e5bd5dee65bbe9777375206f5db791; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 634a5471a6bd774c0d0fa448dfa6ec593e899ec9; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< 1f137c634a8c8faba648574f687805641e62f92e; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< de15e8bbd9eb26fe94a06d0ec7be82dc490eb729; \>= abeaa85054ff8cfe8b99aafc5c70ea067e5d0908, \< f099c5c9e2ba08a379bd354a82e05ef839ae29ac; 5c42f9bfb4c22898ed3d2806d75e2e58522a5edd; 44736603a7099d2a9b48c669e43a689588e272a5; 406a2fbfabbf7ed9ed21884a82c07fabc6fe0b68; 66a4ca83d50bb38c814190af2188868153cce5de; 3eb802924486a923585b344340a5536d91989a45; …; Linux 5.8.

### Is there a fix for CVE-2022-50881?

Yes. Fixed in Linux 99ff971b62e5bd5dee65bbe9777375206f5db791, Linux 634a5471a6bd774c0d0fa448dfa6ec593e899ec9, Linux 1f137c634a8c8faba648574f687805641e62f92e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50881?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/99ff971b62e5bd5dee65bbe9777375206f5db791>
- other: <https://git.kernel.org/stable/c/634a5471a6bd774c0d0fa448dfa6ec593e899ec9>
- other: <https://git.kernel.org/stable/c/1f137c634a8c8faba648574f687805641e62f92e>
- other: <https://git.kernel.org/stable/c/de15e8bbd9eb26fe94a06d0ec7be82dc490eb729>
- other: <https://git.kernel.org/stable/c/f099c5c9e2ba08a379bd354a82e05ef839ae29ac>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50881>

HTML: <https://flawdb.com/CVE-2022-50881> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50881>
