CVE-2022-50829

Source
https://cve.org/CVERecord?id=CVE-2022-50829
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50829.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50829
Downstream
Related
Published
2025-12-30T12:10:51.434Z
Modified
2026-03-20T11:47:38.257091Z
Summary
wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()
Details

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

wifi: ath9k: hifusb: Fix use-after-free in ath9khifusbregincb()

It is possible that skb is freed in ath9khtcrxmsg(), then usbsubmiturb() fails and we try to free skb again. It causes use-after-free bug. Moreover, if allocskb() 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 ath9khtcrx_msg() either frees old skb or passes its managing to another callback function.

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50829.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3deff76095c4ac4252e27c537db3041f619c23a2
Fixed
5e8751a977a49a6e00cce1a8da5ca16da83f9c8c
Fixed
f127c2b4c967025e5c3a4ce7e13b79135d46a33d
Fixed
0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f
Fixed
988bd27de2484faf17afe0408db2e3d9e5ac61fc
Fixed
98d9172822dc6f38138333941984bd759a89d419
Fixed
355f16f756aad0c95cdaa0c14a34ab4137d32815
Fixed
53b9bb1a00c4285ee7f58a11129dbea015db61bc
Fixed
71fc0ad671a62c494d2aec731baeabd3bfe6c95d
Fixed
dd95f2239fc846795fc926787c3ae0ca701c9840

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50829.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.0.0
Fixed
4.9.337
Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
4.14.303
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50829.json"