{"id":"CVE-2022-50709","aliases":["CVE-2022-50709"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg()\n\nsyzbot is reporting uninit value at ath9k_htc_rx_msg() [1], for\nioctl(USB_RAW_IOCTL_EP_WRITE) can call ath9k_hif_usb_rx_stream() with\npkt_len = 0 but ath9k_hif_usb_rx_stream() uses\n__dev_alloc_skb(pkt_len + 32, GFP_ATOMIC) based on an assumption that\npkt_len is valid. As a result, ath9k_hif_usb_rx_stream() allocates skb\nwith uninitialized memory and ath9k_htc_rx_msg() is reading from\nuninitialized memory.\n\nSince bytes accessed by ath9k_htc_rx_msg() is not known until\nath9k_htc_rx_msg() is called, it would be difficult to check minimal valid\npkt_len at \"if (pkt_len > 2 * MAX_RX_BUF_SIZE) {\" line in\nath9k_hif_usb_rx_stream().\n\nWe have two choices. One is to workaround by adding __GFP_ZERO so that\nath9k_htc_rx_msg() sees 0 if pkt_len is invalid. The other is to let\nath9k_htc_rx_msg() validate pkt_len before accessing. This patch chose\nthe latter.\n\nNote that I'm not sure threshold condition is correct, for I can't find\ndetails on possible packet length used by this protocol.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg()\n\nsyzbot is reporting uninit value at ath9k_htc_rx_msg() [1], for\nioctl(USB_RAW_IOCTL_EP_WRITE) can call ath9k_hif_usb_rx_stream() with\npkt_len = 0 but ath9k_hif_usb_rx_stream() uses\n__dev_alloc_skb(pkt_len + 32, GFP_ATOMIC) based on an assumption that\npkt_len is valid. As a result, ath9k_hif_usb_rx_stream() allocates skb\nwith uninitialized memory and ath9k_htc_rx_msg() is reading from\nuninitialized memory.\n\nSince bytes accessed by ath9k_htc_rx_msg() is not known until\nath9k_htc_rx_msg() is called, it would be difficult to check minimal valid\npkt_len at \"if (pkt_len > 2 * MAX_RX_BUF_SIZE) {\" line in\nath9k_hif_usb_rx_stream().\n\nWe have two choices. One is to workaround by adding __GFP_ZERO so that\nath9k_htc_rx_msg() sees 0 if pkt_len is invalid. The other is to let\nath9k_htc_rx_msg() validate pkt_len before accessing. This patch chose\nthe latter.\n\nNote that I'm not sure threshold condition is correct, for I can't find\ndetails on possible packet length used by this protocol.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\\n\\nwifi: ath9k: evitar lectura de memoria no inicializada en ath9k_htc_rx_msg()\\n\\nsyzbot informa de un valor no inicializado en ath9k_htc_rx_msg()?[1]; la llamada\\nioctl(USB_RAW_IOCTL_EP_WRITE) puede invocar ath9k_hif_usb_rx_stream() con\\npkt_len = 0, pero ath9k_hif_usb_rx_stream() utiliza\\n__dev_alloc_skb(pkt_len + 32, GFP_ATOMIC) basándose en la suposición de que\\npkt_len es válido. Como resultado, ath9k_hif_usb_rx_stream() asigna un skb\\ncon memoria no inicializada y ath9k_htc_rx_msg() lee de esa memoria no\\ninicializada.\\n\\nDado que los bytes a los que accede ath9k_htc_rx_msg() no se conocen hasta\\nque se llama a ath9k_htc_rx_msg(), sería difícil comprobar el pkt_len mínimo\\nválido en la línea \\“if (pkt_len mayor que 2 * MAX_RX_BUF_SIZE) {\\” de\\nath9k_hif_usb_rx_stream().\\n\\nTenemos dos opciones. Una es aplicar una solución alternativa añadiendo\\n__GFP_ZERO para que ath9k_htc_rx_msg() reciba 0 si pkt_len es inválido. La\\notra es permitir que ath9k_htc_rx_msg() valide pkt_len antes de acceder. Este\\nparche optó por la segunda opción.\\n\\nCabe señalar que no estoy seguro de que la condición de umbral sea correcta,\\nya que no he encontrado detalles sobre la longitud de paquete posible utilizada\\npor este protocolo.","source":"nvd"}],"published":"2025-12-24T10:55:23.194Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"f3d2a3b7e290d0bdbddfcee5a6c3d922e2b7e02a","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"84242f15f911f34aec9b22f99d1e9bff19723dbe","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"2c485f4f2a64258acc5228e78ffb828c68d9e770","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"9661724f6206bd606ecf13acada676a9975d230b","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"b1b4144508adfc585e43856b31baaf9008a3beb4","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"0d2649b288b7b9484e3d4380c0d6c4720a17e473","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"4891a50f5ed8bfcb8f2a4b816b0676f398687783","status":"affected"},{"type":"git","introduced":"fb9987d0f748c983bb795a86f47522313f701a08","fixed":"b383e8abed41cc6ff1a3b34de75df9397fa4878c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.35","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.35","status":"unaffected"},{"type":"semver","introduced":"4.14.296","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.262","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.220","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.150","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f3d2a3b7e290d0bdbddfcee5a6c3d922e2b7e02a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84242f15f911f34aec9b22f99d1e9bff19723dbe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c485f4f2a64258acc5228e78ffb828c68d9e770","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9661724f6206bd606ecf13acada676a9975d230b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1b4144508adfc585e43856b31baaf9008a3beb4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d2649b288b7b9484e3d4380c0d6c4720a17e473","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4891a50f5ed8bfcb8f2a4b816b0676f398687783","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b383e8abed41cc6ff1a3b34de75df9397fa4878c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50709","url":"https://www.cve.org/CVERecord?id=CVE-2022-50709","licence":"CVE Terms of Use","modified":"2026-05-11T19:23:58.844Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50709","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50709","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.328Z","epss":{"score":0.0023,"percentile":0.14837,"date":"2026-12-02T12:00:21.000Z"}}