diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-02-08 12:35:39 +0100 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-03-06 17:31:13 -0500 |
commit | be97d0ec54e1b75e28f2f238c3b0310396028215 (patch) | |
tree | ca271f53e5bc9c276a7228779fb28edf79b95d03 /drivers/target | |
parent | 0f62f6d7a88b4498df10942597294f494a8575fc (diff) |
ALSA: seq: Fix race at creating a queue
[ Upstream commit 4842e98f26dd80be3623c4714a244ba52ea096a8 ]
When a sequencer queue is created in snd_seq_queue_alloc(),it adds the
new queue element to the public list before referencing it. Thus the
queue might be deleted before the call of snd_seq_queue_use(), and it
results in the use-after-free error, as spotted by syzkaller.
The fix is to reference the queue object at the right time.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions