aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorRobb Glasser <rglasser@google.com>2017-08-11 11:33:31 -0700
committerMoyster <oysterized@gmail.com>2017-11-09 13:15:11 +0100
commita7af0f1f7823ddabff5f92ad8526cbb3cbcc015e (patch)
tree8a89df699a20175c2e3a406ee3c5976d333802b8 /lib/debugobjects.c
parent5043daa42364c738092bfffe5c602540dfff8f0c (diff)
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
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions