# CVE-2022-50829: wifi: ath9k: hif\_usb: Fix use-after-free in ath9k\_hif\_usb\_reg\_in\_cb()

> 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.30% (percentile 15, 2026-11-26)
- **Published:** 2025-12-30T12:10:51.434Z
- **Modified:** 2026-06-17T05:24:15.630Z

## Who should check

- Anyone running Linux \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< f127c2b4c967025e5c3a4ce7e13b79135d46a33d; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 988bd27de2484faf17afe0408db2e3d9e5ac61fc; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 98d9172822dc6f38138333941984bd759a89d419; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 355f16f756aad0c95cdaa0c14a34ab4137d32815; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 53b9bb1a00c4285ee7f58a11129dbea015db61bc; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 71fc0ad671a62c494d2aec731baeabd3bfe6c95d; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< dd95f2239fc846795fc926787c3ae0ca701c9840
- Anyone running Linux 3.0

## 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.

## Affected and fixed versions

- Linux: \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< f127c2b4c967025e5c3a4ce7e13b79135d46a33d; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 988bd27de2484faf17afe0408db2e3d9e5ac61fc; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 98d9172822dc6f38138333941984bd759a89d419; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 355f16f756aad0c95cdaa0c14a34ab4137d32815; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 53b9bb1a00c4285ee7f58a11129dbea015db61bc; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 71fc0ad671a62c494d2aec731baeabd3bfe6c95d; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< dd95f2239fc846795fc926787c3ae0ca701c9840 (cvelist)
- Linux: 3.0 (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-50829. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50829.md
Affected: Linux >= 3deff76095c4ac4252e27c537db3041f619c23a2, < 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c; >= 3deff76095c4ac4252e27c537db3041f619c23a2, < f127c2b4c967025e5c3a4ce7e13b79135d46a33d; >= 3deff76095c4ac4252e27c537db3041f619c23a2, < 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f; >= 3deff76095c4ac4252e27c5…
Fixed in: Linux 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c, Linux 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f, Linux 988bd27de2484faf17afe0408db2e3d9e5ac61fc, Linux 98d9172822dc6f38138333941984bd759a89d419, Linux 355f16f756aad0c95cdaa0c14a34ab4137d32815, Linux 53b9bb1a00c4285ee7f58a11129dbea015db61bc, Linux 71fc0…

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-50829 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< f127c2b4c967025e5c3a4ce7e13b79135d46a33d; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 988bd27de2484faf17afe0408db2e3d9e5ac61fc; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 98d9172822dc6f38138333941984bd759a89d419; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 355f16f756aad0c95cdaa0c14a34ab4137d32815; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 53b9bb1a00c4285ee7f58a11129dbea015db61bc; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< 71fc0ad671a62c494d2aec731baeabd3bfe6c95d; \>= 3deff76095c4ac4252e27c537db3041f619c23a2, \< dd95f2239fc846795fc926787c3ae0ca701c9840; Linux 3.0.

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

Yes. Fixed in Linux 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c, Linux 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f, Linux 988bd27de2484faf17afe0408db2e3d9e5ac61fc, Linux 98d9172822dc6f38138333941984bd759a89d419, Linux 355f16f756aad0c95cdaa0c14a34ab4137d32815, Linux 53b9bb1a00c4285ee7f58a11129dbea015db61bc, Linux 71fc0ad671a62c494d2aec731baeabd3bfe6c95d. No fix listed yet: follow the vendor advisory.

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

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

## 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-50829>

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