wifi: ath9k_htc: Use __skb_set_length() for resetting urb before resubmit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fb9987d0f748c983bb795a86f47522313f701a08 · < e37e348835032d6940ec89308cc8996ded691d2d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ath9k_htc Wi-Fi driver can encounter an uninitialized packet-buffer length in some error paths when resetting a USB request for resubmission. This can trigger a sanity check; the input does not specify an attacker outcome or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ath9k_htc driver should check their versions; affected versions are not specified.