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

CVE-2024-49938
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.26 % · percentile 18 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-824 — Access of Uninitialized Pointer

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected fb9987d0f748c983bb795a86f47522313f701a08 < e6b9bf32e0695e4f374674002de0527d2a6768eb ; affected fb9987d0f748c983bb795a86f47522313f701a08 < d1f2fbc6a769081503f6ffedbb5cd1ac497f0e77 ; affected fb9987d0f748c983bb795a86f47522313f701a08 < b02eb7c86ff2ef1411c3095ec8a52b13f68db04f ; affected fb9987d0f748c983bb795a86f47522313f701a08 < 012ae530afa0785102360de452745d33c99a321b ; affected fb9987d0f748c983bb795a86f47522313f701a08 < 6a875220670475d9247e576c15dc29823100a4e4 ; affected fb9987d0f748c983bb795a86f47522313f701a08 < e37e348835032d6940ec89308cc8996ded691d2d
Linux · Linuxaffected 2.6.35 ; unaffected 0 < 2.6.35 ; unaffected 4.19.323 ≤ 4.19.* ; unaffected 5.4.285 ≤ 5.4.* ; unaffected 5.10.227 ≤ 5.10.* ; unaffected 5.15.168 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD