kernel-fxtec-pro1x/drivers/media/pci
Jia-Ju Bai 882e00b601 media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()
[ Upstream commit 6499a0db9b0f1e903d52f8244eacc1d4be00eea2 ]

The value av7110->debi_virt is stored in DMA memory, and it is assigned
to data, and thus data[0] can be modified at any time by malicious
hardware. In this case, "if (data[0] < 2)" can be passed, but then
data[0] can be changed into a large number, which may cause buffer
overflow when the code "av7110->ci_slot[data[0]]" is used.

To fix this possible bug, data[0] is assigned to a local variable, which
replaces the use of data[0].

Signed-off-by: Jia-Ju Bai <baijiaju@tsinghua.edu.cn>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-03 11:24:18 +02:00
..
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
bt8xx media: dvb: represent min/max/step/tolerance freqs in Hz 2018-08-02 18:10:48 -04:00
cobalt media: pci: cobalt: Replace GFP_ATOMIC with GFP_KERNEL in cobalt_probe() 2018-07-27 08:12:15 -04:00
cx18 media: cx18: update *pos correctly in cx18_read_pos() 2020-01-27 14:50:32 +01:00
cx88 media: cx88: Fix some error handling path in 'cx8800_initdev()' 2019-12-31 16:35:02 +01:00
cx23885 media: rc: prevent memory leak in cx23888_ir_probe 2020-08-05 10:05:59 +02:00
cx25821 media: pci: cx25821: Replace mdelay() with msleep() 2018-07-27 08:14:30 -04:00
ddbridge media: dvb: represent min/max/step/tolerance freqs in Hz 2018-08-02 18:10:48 -04:00
dm1105 media: dm1105: Limit number of cards to avoid buffer over read 2018-08-02 18:53:42 -04:00
dt3155 media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
intel media: ipu3-cio2: Unregister device nodes first, then release resources 2018-12-13 09:16:09 +01:00
ivtv media: ivtv: update *pos correctly in ivtv_read_pos() 2020-01-27 14:50:32 +01:00
mantis media: dvb: represent min/max/step/tolerance freqs in Hz 2018-08-02 18:10:48 -04:00
meye media: fix: media: pci: meye: validate offset to avoid arbitrary access 2019-11-20 18:46:33 +01:00
netup_unidvb media: netup_unidvb: don't check number of messages in the driver 2018-07-27 06:39:57 -04:00
ngene media: dvb-frontends/stv0910: make TS speed configurable 2018-05-28 17:46:04 -04:00
pluto2 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
pt1 media: dvb/earth-pt1: fix wrong initialization for demod blocks 2020-01-27 14:50:30 +01:00
pt3 media: Revert cleanup ktime_set() usage 2018-05-09 16:31:06 -04:00
saa7134 media: saa7134: fix terminology around saa7134_i2c_eeprom_md7134_gate() 2019-10-05 13:09:49 +02:00
saa7146 media: saa7146: add cleanup in hexium_attach() 2019-10-05 13:09:49 +02:00
saa7164 media: saa7164: fix remove_proc_entry warning 2019-07-26 09:14:02 +02:00
smipcie media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
solo6x10 media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
sta2x11 media: sta2x11: add a missing parameter description 2018-08-07 06:13:36 -04:00
ttpci media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq() 2020-09-03 11:24:18 +02:00
tw68
tw686x media: tw686x: Fix oops on buffer alloc failure 2018-07-25 08:34:28 -04:00
tw5864 media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame 2020-01-27 14:50:35 +01:00
Kconfig media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00
Makefile media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00