Junlin Li
d7c508c5ad
drivers: media: dvb-frontends/rtl2832: fix an out-of-bounds write error
...
Ensure index in rtl2832_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.
Signed-off-by: Junlin Li <make24@iscas.ac.cn >
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl >
Fixes: 4b01e01a81
("[media] rtl2832: implement PID filter")
[hverkuil: added fixes tag, rtl2830_pid_filter -> rtl2832_pid_filter in logmsg]
2025-03-18 19:33:10 +02:00
..
2024-12-11 18:25:20 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2023-06-29 08:09:31 -06:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2023-06-30 09:37:26 -07:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 17:53:49 +02:00
2023-06-26 07:54:23 -06:00
2024-12-11 18:25:20 +02:00
2023-06-29 11:00:17 -07:00
2023-06-26 15:09:18 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:25:20 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2023-06-28 19:09:55 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2023-06-29 20:57:27 -07:00
2023-06-30 09:37:26 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2023-06-30 17:35:45 -05:00
2024-12-11 17:53:49 +02:00
2025-03-18 19:33:10 +02:00
2023-07-06 10:06:04 -07:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:25:20 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:25:20 +02:00
2024-12-11 17:53:49 +02:00
2023-07-08 13:55:44 -04:00
2023-06-26 07:54:23 -06:00
2024-12-11 17:53:49 +02:00
2023-06-29 14:58:26 -07:00
2023-06-27 07:35:14 +05:30
2023-06-30 17:14:15 +02:00
2023-07-03 12:46:47 -07:00
2024-12-11 17:53:49 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 17:53:49 +02:00
2023-07-01 08:58:41 -07:00
2023-07-05 21:38:13 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2023-06-29 15:22:19 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2023-07-05 12:55:06 -07:00
2023-07-06 19:20:23 -07:00
2023-07-03 17:03:05 -07:00
2023-06-29 15:22:19 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:25:20 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2025-02-10 20:14:08 +02:00
2024-12-11 17:53:49 +02:00
2023-06-29 15:22:19 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2023-07-03 15:38:26 -07:00
2024-12-11 18:00:46 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 17:53:49 +02:00
2024-12-11 18:00:46 +02:00
2023-06-27 10:47:08 -04:00
2024-12-11 18:00:46 +02:00
2024-12-11 18:00:46 +02:00