CVE-2022-50829
wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()
Check your servers for CVE-2022-50829
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50829 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before f127c2b4c967025e5c3a4ce7e13b79135d46a33d affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 988bd27de2484faf17afe0408db2e3d9e5ac61fc affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 98d9172822dc6f38138333941984bd759a89d419 affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 355f16f756aad0c95cdaa0c14a34ab4137d32815 affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 53b9bb1a00c4285ee7f58a11129dbea015db61bc affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before 71fc0ad671a62c494d2aec731baeabd3bfe6c95d affected from 3deff76095c4ac4252e27c537db3041f619c23a2, before dd95f2239fc846795fc926787c3ae0ca701c9840
Other versions: unaffected
|
| Linux |
affected 3.0 unaffected before 3.0 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50829 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50829
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50829
trivy image --scanners vuln IMAGE | grep CVE-2022-50829
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5e8751a977a49a6e00cce1a8da5ca16da83f9c8c git.kernel.org
- https://git.kernel.org/stable/c/f127c2b4c967025e5c3a4ce7e13b79135d46a33d git.kernel.org
- https://git.kernel.org/stable/c/0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f git.kernel.org
- https://git.kernel.org/stable/c/988bd27de2484faf17afe0408db2e3d9e5ac61fc git.kernel.org
- https://git.kernel.org/stable/c/98d9172822dc6f38138333941984bd759a89d419 git.kernel.org
- https://git.kernel.org/stable/c/355f16f756aad0c95cdaa0c14a34ab4137d32815 git.kernel.org
- https://git.kernel.org/stable/c/53b9bb1a00c4285ee7f58a11129dbea015db61bc git.kernel.org
- https://git.kernel.org/stable/c/71fc0ad671a62c494d2aec731baeabd3bfe6c95d git.kernel.org
- https://git.kernel.org/stable/c/dd95f2239fc846795fc926787c3ae0ca701c9840 git.kernel.org
Source: the record CVE-2022-50829 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse