# CVE-2022-50709: wifi: ath9k: avoid uninit memory read in ath9k\_htc\_rx\_msg()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.2, physical access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-24 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2022-50709, DEBIAN-CVE-2022-50709
- Record: https://cvemate.com/vulnerability/CVE-2022-50709 · JSON: https://cvemate.com/vulnerability/CVE-2022-50709/json

## Description

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

wifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg()

syzbot is reporting uninit value at ath9k_htc_rx_msg() [1], for
ioctl(USB_RAW_IOCTL_EP_WRITE) can call ath9k_hif_usb_rx_stream() with
pkt_len = 0 but ath9k_hif_usb_rx_stream() uses
__dev_alloc_skb(pkt_len + 32, GFP_ATOMIC) based on an assumption that
pkt_len is valid. As a result, ath9k_hif_usb_rx_stream() allocates skb
with uninitialized memory and ath9k_htc_rx_msg() is reading from
uninitialized memory.

Since bytes accessed by ath9k_htc_rx_msg() is not known until
ath9k_htc_rx_msg() is called, it would be difficult to check minimal valid
pkt_len at "if (pkt_len > 2 * MAX_RX_BUF_SIZE) {" line in
ath9k_hif_usb_rx_stream().

We have two choices. One is to workaround by adding __GFP_ZERO so that
ath9k_htc_rx_msg() sees 0 if pkt_len is invalid. The other is to let
ath9k_htc_rx_msg() validate pkt_len before accessing. This patch chose
the latter.

Note that I'm not sure threshold condition is correct, for I can't find
details on possible packet length used by this protocol.
```

## Signals

- CVSS: 5.2 medium (v4.0, OSV · Ubuntu) CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.23%, percentile 14.793%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 124)

- debian linux (Debian): \< 6.0.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.15.0-204.215 \| \< 5.4.0-139.156 \| \< 5.15.0-60.66
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 4.15.0-1150.163 \| \< 5.4.0-1096.104 \| \< 5.15.0-1030.34
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1030.34~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1096.104~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2089.95 \| All versions (No fix recorded) \| \< 5.4.0-1096.104+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1151.164~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1162.177~14.04.1 \| \< 4.15.0-1162.177~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1103.109 \| \< 5.15.0-1033.40
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1161.176
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/f3d2a3b7e290d0bdbddfcee5a6c3d922e2b7e02a>
- <https://git.kernel.org/stable/c/84242f15f911f34aec9b22f99d1e9bff19723dbe>
- <https://git.kernel.org/stable/c/2c485f4f2a64258acc5228e78ffb828c68d9e770>
- <https://git.kernel.org/stable/c/9661724f6206bd606ecf13acada676a9975d230b>
- <https://git.kernel.org/stable/c/b1b4144508adfc585e43856b31baaf9008a3beb4>
- <https://git.kernel.org/stable/c/0d2649b288b7b9484e3d4380c0d6c4720a17e473>
- <https://git.kernel.org/stable/c/4891a50f5ed8bfcb8f2a4b816b0676f398687783>
- <https://git.kernel.org/stable/c/b383e8abed41cc6ff1a3b34de75df9397fa4878c>
- <https://ubuntu.com/security/CVE-2022-50709>
- <https://www.cve.org/CVERecord?id=CVE-2022-50709>
- <https://security-tracker.debian.org/tracker/CVE-2022-50709>

---

Data as of 2026-12-06T04:48:38.677Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
