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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | before 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.3 | NVD |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-49938 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-49938 changed 2026-10-15 | Public domain |