summaryrefslogtreecommitdiffstats
path: root/fs/fs_pin.c
diff options
context:
space:
mode:
authorWei Chen <harperchen1110@gmail.com>2023-03-10 16:56:04 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 10:32:23 +0200
commit4b61ee116a3ce5eb9dfdf9b865669b0dd9a74de2 (patch)
tree8b15ec9d1643003b7ef36b303a3c301855d4c3cc /fs/fs_pin.c
parent5e9ad9962f2abf17797c0273ea50c92c3b880c5d (diff)
downloadlinux-stable-4b61ee116a3ce5eb9dfdf9b865669b0dd9a74de2.tar.gz
linux-stable-4b61ee116a3ce5eb9dfdf9b865669b0dd9a74de2.tar.bz2
linux-stable-4b61ee116a3ce5eb9dfdf9b865669b0dd9a74de2.zip
media: dvb-usb: az6027: fix three null-ptr-deref in az6027_i2c_xfer()
[ Upstream commit 858e97d7956d17a2cb56a9413468704a4d5abfe1 ] In az6027_i2c_xfer, msg is controlled by user. When msg[i].buf is null, commit 0ed554fd769a ("media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()") fix the null-ptr-deref bug when msg[i].addr is 0x99. However, null-ptr-deref also happens when msg[i].addr is 0xd0 and 0xc0. We add check on msg[i].len to prevent null-ptr-deref. Link: https://lore.kernel.org/linux-media/20230310165604.3093483-1-harperchen1110@gmail.com Signed-off-by: Wei Chen <harperchen1110@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/fs_pin.c')
0 files changed, 0 insertions, 0 deletions