net: usb: lan78xx: Limit packet length to skb->len
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.226.2.96.3In the Linux kernel, the following vulnerability has been resolved:
net: usb: lan78xx: Limit packet length to skb->len
Packet length retrieved from descriptor may be larger than the actual socket buffer length. In such case the cloned skb passed up the network stack will leak kernel memory contents.
Additionally prevent integer underflow when size is less than ETH_FCS_LEN.
From the CVE record · Linux
The Linux kernel’s lan78xx USB networking code can trust a packet length from a descriptor that exceeds the actual socket buffer length. In that case, a cloned packet passed up the network stack can leak kernel memory contents; a length below ETH_FCS_LEN can also cause integer underflow. The input does not specify authentication or user-interaction requirements.
Anyone running the Linux kernel should check whether their kernel includes the affected lan78xx code; affected versions are not specified.