# CVE-2022-50829: wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Published: 2025-12-30T12:10:51.434Z
- Modified: 2026-06-17T05:24:15.630Z
- Assigned by: Linux

## Description

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

wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()

It is possible that skb is freed in ath9k_htc_rx_msg(), then
usb_submit_urb() fails and we try to free skb again. It causes
use-after-free bug. Moreover, if alloc_skb() fails, urb->context becomes
NULL but rx_buf is not freed and there can be a memory leak.

The patch removes unnecessary nskb and makes skb processing more clear: it
is supposed that ath9k_htc_rx_msg() either frees old skb or passes its
managing to another callback function.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

(As written by CVE List.)

## Affected

- Linux Linux: from 3deff76095c4ac4252e27c537db3041f619c23a2 before 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c; from 3deff76095c4ac4252e27c537db3041f619c23a2 before f127c2b4c967025e5c3a4ce7e13b79135d46a33d; from 3deff76095c4ac4252e27c537db3041f619c23a2 before 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f; from 3deff76095c4ac4252e27c537db3041f619c23a2 before 988bd27de2484faf17afe0408db2e3d9e5ac61fc; from 3deff76095c4ac4252e27c537db3041f619c23a2 before 98d9172822dc6f38138333941984bd759a89d419; from 3deff76095c4ac4252e27c537db3041f619c23a2 before 355f16f756aad0c95cdaa0c14a34ab4137d32815; from 3deff76095c4ac4252e27c537db3041f619c23a2 before 53b9bb1a00c4285ee7f58a11129dbea015db61bc; from 3deff76095c4ac4252e27c537db3041f619c23a2 before 71fc0ad671a62c494d2aec731baeabd3bfe6c95d; from 3deff76095c4ac4252e27c537db3041f619c23a2 before dd95f2239fc846795fc926787c3ae0ca701c9840; 3.0 (not affected: before 3.0; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/5e8751a977a49a6e00cce1a8da5ca16da83f9c8c>
- <https://git.kernel.org/stable/c/f127c2b4c967025e5c3a4ce7e13b79135d46a33d>
- <https://git.kernel.org/stable/c/0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f>
- <https://git.kernel.org/stable/c/988bd27de2484faf17afe0408db2e3d9e5ac61fc>
- <https://git.kernel.org/stable/c/98d9172822dc6f38138333941984bd759a89d419>
- <https://git.kernel.org/stable/c/355f16f756aad0c95cdaa0c14a34ab4137d32815>
- <https://git.kernel.org/stable/c/53b9bb1a00c4285ee7f58a11129dbea015db61bc>
- <https://git.kernel.org/stable/c/71fc0ad671a62c494d2aec731baeabd3bfe6c95d>
- <https://git.kernel.org/stable/c/dd95f2239fc846795fc926787c3ae0ca701c9840>

## Sources

- CVE List: [CVE-2022-50829](https://www.cve.org/CVERecord?id=CVE-2022-50829), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50829](https://nvd.nist.gov/vuln/detail/CVE-2022-50829), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50829 · Whole record: https://cve.day/CVE-2022-50829.json · Rebuilt by cve.day 2026-11-25T22:58:21.372Z
