CVE-2024-49938

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

State
Published
Severity
Not scored
Published
Oct 21, 2024
Updated
Oct 15, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fb9987d0f748c983bb795a86f47522313f701a08 to before e6b9bf32e0695e4f374674002de0527d2a6768ebAffected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77Affected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before b02eb7c86ff2ef1411c3095ec8a52b13f68db04fAffected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before 012ae530afa0785102360de452745d33c99a321bAffected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before 6a875220670475d9247e576c15dc29823100a4e4Affected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before e37e348835032d6940ec89308cc8996ded691d2dAffected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before 2c230210ec0ae6ed08306ac70dc21c24b817bb95Affected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before a9f4e28e8adaf0715bd4e01462af0a52ee46b01fAffected
  • fb9987d0f748c983bb795a86f47522313f701a08 to before 94745807f3ebd379f23865e6dab196f220664179Affected
LinuxLinux
  • 2.6.35Affected
  • before 2.6.35Not affected
  • 4.19.323 through 4.19.*Not affected
  • 5.4.285 through 5.4.*Not affected
  • 5.10.227 through 5.10.*Not affected
  • 5.15.168 through 5.15.*Not affected
  • 6.1.113 through 6.1.*Not affected
  • 6.6.55 through 6.6.*Not affected
  • 6.10.14 through 6.10.*Not affected
  • 6.11.3 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.