usb: rndis_host: Secure rndis_query check against int overflow
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ddda08624013e8435e9f7cfc34a35bd7b3520b6d · < 39eadaf5611ddd064ad1c53da65c02d2b0fe22a4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: rndis_host: Secure rndis_query check against int overflow
Variables off and len typed as uint32 in rndis_query function are controlled by incoming RNDIS response message thus their value may be manipulated. Setting off to a unexpectetly large value will cause the sum with len and 8 to overflow and pass the implemented validation step. Consequently the response pointer will be referring to a location past the expected buffer boundaries allowing information leakage e.g. via RNDIS_OID_802_3_PERMANENT_ADDRESS OID.
From the CVE record · Linux
The Linux kernel's rndis_query function can mishandle attacker-controlled offset and length values in an incoming RNDIS response. An integer overflow can bypass a buffer check and allow information leakage. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the usb rndis_host component should check whether their kernel is affected; affected versions are not specified.