]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ttusb-dec: Fix info-leak in ttusb_dec_send_command()
authorTomas Bortoli <tomasbortoli@gmail.com>
Wed, 31 Jul 2019 15:19:05 +0000 (12:19 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:58 +0000 (13:13 +0200)
commitdae45bd9b873297606135d0682ea3094efa1471c
tree621e8090eddf2195731bacd3ed27429b1342035b
parent06752109ced1e7c719d7dce9f12c9e67a93b62c7
media: ttusb-dec: Fix info-leak in ttusb_dec_send_command()

[ Upstream commit a10feaf8c464c3f9cfdd3a8a7ce17e1c0d498da1 ]

The function at issue does not always initialize each byte allocated
for 'b' and can therefore leak uninitialized memory to a USB device in
the call to usb_bulk_msg()

Use kzalloc() instead of kmalloc()

Signed-off-by: Tomas Bortoli <tomasbortoli@gmail.com>
Reported-by: syzbot+0522702e9d67142379f1@syzkaller.appspotmail.com
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/ttusb-dec/ttusb_dec.c