Re: [PATCH net 2/2] r8152: rx descriptor check
From: Mark Lord
Date: Sat Nov 12 2016 - 08:21:49 EST
On 16-11-11 07:13 AM, Francois Romieu wrote:
> Hayes Wang <hayeswang@xxxxxxxxxxx> :
>> For some platforms, the data in memory is not the same with the one
>> from the device. That is, the data of memory is unbelievable. The
>> check is used to find out this situation.
>
> Invalid packet size corrupted receive descriptors in Realtek's device
> reminds of CVE-2009-4537.
>
> Is the silicium of both devices different enough to prevent the same
> exploit to happen ?
I don't know if the hardware can do it, but the existing Linux device
driver regularly attempts to process huge unreal packet sizes here.
I've had to patch it to reject "packets" larger than the configured MRU.
--
Mark Lord
Real-Time Remedies Inc.
mlord@xxxxxxxxx