# CVE-2024-49938: wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-10-21T18:01:58.359Z
- Modified: 2026-10-15T01:19:01.320Z
- Weaknesses: CWE-824
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; from fb9987d0f748c983bb795a86f47522313f701a08 before 94745807f3ebd379f23865e6dab196f220664179; 2.6.35 (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.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- 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

## References

- <https://git.kernel.org/stable/c/e6b9bf32e0695e4f374674002de0527d2a6768eb> (patch)
- <https://git.kernel.org/stable/c/d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77> (patch)
- <https://git.kernel.org/stable/c/b02eb7c86ff2ef1411c3095ec8a52b13f68db04f> (patch)
- <https://git.kernel.org/stable/c/012ae530afa0785102360de452745d33c99a321b> (patch)
- <https://git.kernel.org/stable/c/6a875220670475d9247e576c15dc29823100a4e4> (patch)
- <https://git.kernel.org/stable/c/e37e348835032d6940ec89308cc8996ded691d2d> (patch)
- <https://git.kernel.org/stable/c/2c230210ec0ae6ed08306ac70dc21c24b817bb95> (patch)
- <https://git.kernel.org/stable/c/a9f4e28e8adaf0715bd4e01462af0a52ee46b01f> (patch)
- <https://git.kernel.org/stable/c/94745807f3ebd379f23865e6dab196f220664179> (patch)
- <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>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2024-49938](https://www.cve.org/CVERecord?id=CVE-2024-49938), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-49938](https://nvd.nist.gov/vuln/detail/CVE-2024-49938), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-49938 · Whole record: https://cve.day/CVE-2024-49938.json · Rebuilt by cve.day 2026-11-25T22:58:47.053Z
