diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-15 23:37:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 10:20:30 +0300 |
commit | 43bb0a16b25d5030193935b5c292648fa9abc0fc (patch) | |
tree | b6e1b94cac0ad83c0397738b8bfe02e48937908d /net/xfrm/xfrm_output.c | |
parent | 00bbc127415f104ed0f195a994fc3892f2d5383e (diff) | |
download | linux-43bb0a16b25d5030193935b5c292648fa9abc0fc.tar.xz |
ALSA: seq: Fix racy access for queue timer in proc read
commit 60adcfde92fa40fcb2dbf7cc52f9b096e0cd109a upstream.
snd_seq_info_timer_read() reads the information of the timer assigned
for each queue, but it's done in a racy way which may lead to UAF as
spotted by syzkaller.
This patch applies the missing q->timer_mutex lock while accessing the
timer object as well as a slight code change to adapt the standard
coding style.
Reported-by: syzbot+2b2ef983f973e5c40943@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200115203733.26530-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/xfrm/xfrm_output.c')
0 files changed, 0 insertions, 0 deletions