usbnet: ipheth: fix possible overflow in DPE length check
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usbnet: ipheth: fix possible overflow in DPE length check
Originally, it was possible for the DPE length check to overflow if wDatagramIndex + wDatagramLength > U16_MAX. This could lead to an OoB read.
Move the wDatagramIndex term to the other side of the inequality.
An existing condition ensures that wDatagramIndex < urb->actual_length.
From the CVE record · Linux
The Linux kernel’s usbnet ipheth DPE length check can overflow when wDatagramIndex + wDatagramLength exceeds U16_MAX, potentially causing an out-of-bounds read. The input does not specify how an attacker could reach this condition or whether authentication, network access, or user interaction is required.
Engineers running Linux kernels with the usbnet ipheth component should check their versions; affected versions are not specified.