CVE-2024-49938
JSON

5.5medium

wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit Syzbot points out that skb_trim() has a sanity check on the existing length of the skb, which can be uninitialised in some error paths. The intent here is clearly just to reset the length to zero before resubmitting, so switch to calling __skb_set_length(skb, 0) directly. In addition, __skb_set_length() already contains a call to skb_reset_tail_pointer(), so remove the redundant call. The syzbot report came from ath9k_hif_usb_reg_in_cb(), but there's a similar usage of skb_trim() in ath9k_hif_usb_rx_cb(), change both while we're at it.

Affected

Product or packageVersionsReported by
Linux Linuxfrom fb9987d0f748c983bb795a86f47522313f701a08 before e6b9bf32e0695e4f374674002de0527d2a6768eb, from fb9987d0f748c983bb795a86f47522313f701a08 before d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77, from fb9987d0f748c983bb795a86f47522313f701a08 before b02eb7c86ff2ef1411c3095ec8a52b13f68db04f, from fb9987d0f748c983bb795a86f47522313f701a08 before 012ae530afa0785102360de452745d33c99a321b, from fb9987d0f748c983bb795a86f47522313f701a08 before 6a875220670475d9247e576c15dc29823100a4e4, from fb9987d0f748c983bb795a86f47522313f701a08 before e37e348835032d6940ec89308cc8996ded691d2d, from fb9987d0f748c983bb795a86f47522313f701a08 before 2c230210ec0ae6ed08306ac70dc21c24b817bb95, from fb9987d0f748c983bb795a86f47522313f701a08 before a9f4e28e8adaf0715bd4e01462af0a52ee46b01f and 2 more
Not affected: before 2.6.35, from 4.19.323 up to 4.19.*, from 5.4.285 up to 5.4.*, from 5.10.227 up to 5.10.*, from 5.15.168 up to 5.15.*, from 6.1.113 up to 6.1.*
CVE List
linux linux_kernelbefore 5.10.227, from 5.11 before 5.15.168, from 5.16 before 6.1.113, from 6.2 before 6.6.55, from 6.7 before 6.10.14, from 6.11 before 6.11.3NVD

Classification

CWE-824

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit Syzbot points out that skb_trim() has a sanity check on the existing length of the skb, which can be uninitialised in some error paths. The intent here is clearly just to reset the length to zero before resubmitting, so switch to calling __skb_set_length(skb, 0) directly. In addition, __skb_set_length() already contains a call to skb_reset_tail_pointer(), so remove the redundant call. The syzbot report came from ath9k_hif_usb_reg_in_cb(), but there's a similar usage of skb_trim() in ath9k_hif_usb_rx_cb(), change both while we're at it.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: ath9k_htc: Use __skb_set_length() para restablecer urb antes de volver a enviar Syzbot señala que skb_trim() tiene una comprobación de cordura en la longitud existente del skb, que puede no inicializarse en algunas rutas de error. La intención aquí es claramente solo restablecer la longitud a cero antes de volver a enviar, así que cambie a llamar a __skb_set_length(skb, 0) directamente. Además, __skb_set_length() ya contiene una llamada a skb_reset_tail_pointer(), así que elimine la llamada redundante. El informe de syzbot vino de ath9k_hif_usb_reg_in_cb(), pero hay un uso similar de skb_trim() en ath9k_hif_usb_rx_cb(), cambie ambos mientras estamos en eso.

References

https://git.kernel.org/stable/c/e6b9bf32e0695e4f374674002de0527d2a6768ebpatch
https://git.kernel.org/stable/c/d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77patch
https://git.kernel.org/stable/c/b02eb7c86ff2ef1411c3095ec8a52b13f68db04fpatch
https://git.kernel.org/stable/c/012ae530afa0785102360de452745d33c99a321bpatch
https://git.kernel.org/stable/c/6a875220670475d9247e576c15dc29823100a4e4patch
https://git.kernel.org/stable/c/e37e348835032d6940ec89308cc8996ded691d2dpatch
https://git.kernel.org/stable/c/2c230210ec0ae6ed08306ac70dc21c24b817bb95patch
https://git.kernel.org/stable/c/a9f4e28e8adaf0715bd4e01462af0a52ee46b01fpatch
https://git.kernel.org/stable/c/94745807f3ebd379f23865e6dab196f220664179patch
https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
https://cert-portal.siemens.com/productcert/html/ssa-265688.html

Sources

SourceRecordLicence
CVE ListCVE-2024-49938 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-49938 changed 2026-10-15Public domain