net: usb: cdc-phonet: fix skb frags[] overflow in rx_complete()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 87cf65601e1709e57f7e28f0f7b3eb0a992c1782 · < c183d5775129a0a7495bd61a6e57ec230dcf01e5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: usb: cdc-phonet: fix skb frags[] overflow in rx_complete()
A malicious USB device claiming to be a CDC Phonet modem can overflow the skb_shared_info->frags[] array by sending an unbounded sequence of full-page bulk transfers.
Drop the skb and increment the length error when the frag limit is reached. This matches the same fix that commit f0813bcd2d9d ("net: wwan: t7xx: fix potential skb->frags overflow in RX path") did for the t7xx driver.
From the CVE record · Linux
The Linux kernel’s CDC Phonet USB driver can overflow the skb_shared_info->frags[] array when a malicious USB device posing as a CDC Phonet modem sends an unbounded sequence of full-page bulk transfers. Exploitation requires the malicious device to be connected; the input does not specify an authentication requirement.
Engineers running Linux kernels with the CDC Phonet USB driver should check whether their kernel is affected; no affected versions are specified.