summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorJunlin Li <make24@iscas.ac.cn>2024-07-03 01:50:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-04 16:33:05 +0200
commit7fd6aae7e53b94f4035b1bfce28b8dfa0d0ae470 (patch)
tree3baf1efdb7104e1bcba3b9ee9cbade2f4f7c960d /drivers/pci/pci.c
parent66dbe0df6eccc7ee53a2c35016ce81e13b3ff447 (diff)
downloadlinux-stable-7fd6aae7e53b94f4035b1bfce28b8dfa0d0ae470.tar.gz
linux-stable-7fd6aae7e53b94f4035b1bfce28b8dfa0d0ae470.tar.bz2
linux-stable-7fd6aae7e53b94f4035b1bfce28b8dfa0d0ae470.zip
drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error
[ Upstream commit 46d7ebfe6a75a454a5fa28604f0ef1491f9d8d14 ] Ensure index in rtl2830_pid_filter does not exceed 31 to prevent out-of-bounds access. dev->filters is a 32-bit value, so set_bit and clear_bit functions should only operate on indices from 0 to 31. If index is 32, it will attempt to access a non-existent 33rd bit, leading to out-of-bounds access. Change the boundary check from index > 32 to index >= 32 to resolve this issue. Fixes: df70ddad81b4 ("[media] rtl2830: implement PID filter") Signed-off-by: Junlin Li <make24@iscas.ac.cn> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions