android_kernel_google_msm/sound/core
Robb Glasser 745b477c70 ALSA: pcm: prevent UAF in snd_pcm_info
When the device descriptor is closed, the `substream->runtime` pointer
is freed. But another thread may be in the ioctl handler, case
SNDRV_CTL_IOCTL_PCM_INFO. This case calls snd_pcm_info_user() which
calls snd_pcm_info() which accesses the now freed `substream->runtime`.

Bug: 36006981
Signed-off-by: Robb Glasser <rglasser@google.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I445d24bc21dc0af6d9522a8daabe64969042236a
2018-01-13 17:13:42 +03:00
..
oss
seq Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
Kconfig
Makefile
compress_offload.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
control.c ALSA: control: Make sure that id->index does not overflow 2017-04-03 16:43:05 -06:00
control_compat.c
ctljack.c
device.c
hrtimer.c ALSA: hrtimer: Fix stall by hrtimer_cancel() 2016-10-29 23:12:35 +08:00
hwdep.c
hwdep_compat.c
info.c ALSA: info: Check for integer overflow in snd_info_entry_write() 2017-06-07 13:18:23 -06:00
info_oss.c
init.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
isadma.c
jack.c
memalloc.c
memory.c
misc.c
pcm.c ALSA: pcm: prevent UAF in snd_pcm_info 2018-01-13 17:13:42 +03:00
pcm_compat.c ALSA: pcm: Zero-clear reserved fields of PCM status ioctl in compat mode 2015-02-02 17:05:06 +08:00
pcm_lib.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
pcm_memory.c
pcm_misc.c
pcm_native.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
pcm_timer.c
rawmidi.c
rawmidi_compat.c
rtctimer.c
sgbuf.c
sound.c
sound_oss.c
timer.c UPSTREAM: ALSA: timer: Call notifier in the same spinlock 2018-01-13 17:13:38 +03:00
timer_compat.c
vmaster.c