Re: [PATCH] net: cdc_ncm: fix NULL pointer deref in cdc_ncm_bind_common

2015-11-24 Thread David Miller
From: Bjørn Mork Date: Mon, 23 Nov 2015 14:32:10 +0100 > Commit 77b0a099674a ("cdc-ncm: use common parser") added a dangerous > new trust in the CDC functional descriptors presented by the device, > unconditionally assuming that any device handled by the driver has > a CDC Union descriptor. > >

[PATCH] net: cdc_ncm: fix NULL pointer deref in cdc_ncm_bind_common

2015-11-23 Thread Bjørn Mork
Commit 77b0a099674a ("cdc-ncm: use common parser") added a dangerous new trust in the CDC functional descriptors presented by the device, unconditionally assuming that any device handled by the driver has a CDC Union descriptor. This descriptor is required by the NCM and MBIM specs, but crashing o