sound: Fix DoS vulnerability in kernel sound driver
authorGagan Grover <ggrover@nvidia.com>
Mon, 14 Nov 2016 20:17:50 +0000 (01:17 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 23 Nov 2016 01:14:02 +0000 (17:14 -0800)
commitb2eba7fec629035e2834174139f27b8093a3dbf8
tree4d100408eab6bef280aac25cba0be8c7659ea0a1
parent44a2b2f3184bf6bef75c6f9119a69d1c99fb11d8
sound: Fix DoS vulnerability in kernel sound driver

There is no validation of the codec variable passed to the
snd_soc_read and snd_soc_write functions.
The fix is designed to add a check for null function pointers
in the dummy sound driver.

CVE-2016-6690 A-28838221

Bug 1812688

Change-Id: I884b330e8247f345d14469d2b207a7e2a5fa8786
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1252960
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
sound/soc/soc-core.c