CVE-2024-49938

Source
https://cve.org/CVERecord?id=CVE-2024-49938
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49938.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-49938
Downstream
Related
Published
2024-10-21T18:01:58.359Z
Modified
2026-03-11T07:53:31.283211Z
Summary
wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit
Details

In the Linux kernel, the following vulnerability has been resolved:

wifi: ath9k_htc: Use __skbsetlength() 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 __skbsetlength(skb, 0) directly. In addition, _skbsetlength() already contains a call to skbresettailpointer(), so remove the redundant call.

The syzbot report came from ath9khifusbregincb(), but there's a similar usage of skbtrim() in ath9khifusbrxcb(), change both while we're at it.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49938.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fb9987d0f748c983bb795a86f47522313f701a08
Fixed
e6b9bf32e0695e4f374674002de0527d2a6768eb
Fixed
d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77
Fixed
b02eb7c86ff2ef1411c3095ec8a52b13f68db04f
Fixed
012ae530afa0785102360de452745d33c99a321b
Fixed
6a875220670475d9247e576c15dc29823100a4e4
Fixed
e37e348835032d6940ec89308cc8996ded691d2d
Fixed
2c230210ec0ae6ed08306ac70dc21c24b817bb95
Fixed
a9f4e28e8adaf0715bd4e01462af0a52ee46b01f
Fixed
94745807f3ebd379f23865e6dab196f220664179

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49938.json"