Junlin Li
46d7ebfe6a
drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error
...
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>
2024-08-09 07:56:38 +02:00
..
2024-04-08 13:48:18 +02:00
2024-05-31 13:51:16 +02:00
2024-08-09 07:56:37 +02:00
2022-11-25 09:55:55 +00:00
2023-07-09 22:47:48 +01:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2023-07-09 22:47:48 +01:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2024-04-15 13:42:38 +02:00
2020-01-08 11:44:44 +01:00
2019-05-24 17:39:02 +02:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2024-08-09 07:56:37 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2024-02-16 11:46:32 +01:00
2024-02-07 05:54:19 +01:00
2019-05-30 11:25:13 -07:00
2019-05-24 17:39:01 +02:00
2019-05-24 17:39:01 +02:00
2019-05-24 17:39:01 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2024-02-07 05:40:07 +01:00
2024-02-16 11:46:31 +01:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2024-03-06 13:07:39 -08:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2024-08-09 07:56:37 +02:00
2021-09-30 10:08:02 +02:00
2019-10-07 07:43:14 -03:00
2024-08-09 07:56:37 +02:00
2023-07-09 22:47:48 +01:00
2019-10-07 07:43:14 -03:00
2019-10-07 07:43:14 -03:00
2020-11-16 10:31:16 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-06-05 17:37:10 +02:00
2023-09-09 08:15:11 +01:00
2019-06-05 17:37:10 +02:00
2020-04-14 10:36:18 +02:00
2019-06-05 17:37:10 +02:00
2023-09-09 08:15:11 +01:00
2023-09-09 08:15:11 +01:00
2019-06-05 17:37:10 +02:00
2023-09-09 08:15:11 +01:00
2017-11-02 11:10:55 +01:00
2024-05-31 13:51:16 +02:00
2017-11-02 11:10:55 +01:00
2023-09-09 08:15:11 +01:00
2017-11-02 11:10:55 +01:00
2023-09-09 08:15:11 +01:00
2017-11-02 11:10:55 +01:00
2019-05-21 10:50:45 +02:00
2018-03-06 04:08:17 -05:00
2019-06-19 17:09:09 +02:00
2019-06-19 17:09:09 +02:00
2023-09-09 08:15:11 +01:00
2019-06-19 17:09:09 +02:00
2019-06-19 17:09:09 +02:00
2023-09-09 08:15:11 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-11-16 10:31:16 +01:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2020-01-08 11:43:52 +01:00
2020-01-08 11:44:21 +01:00
2024-02-07 05:54:08 +01:00
2020-11-16 10:31:16 +01:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2020-04-14 10:36:18 +02:00
2019-06-05 17:37:10 +02:00
2019-05-24 17:39:02 +02:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:39:01 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:39:01 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2022-03-18 05:58:35 +01:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2018-09-12 09:24:41 -04:00
2018-09-12 09:24:41 -04:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:39:01 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:39:01 +02:00
2023-07-09 22:47:48 +01:00
2024-05-20 08:55:18 -07:00
2020-11-16 10:31:16 +01:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2022-03-14 09:42:59 +01:00
2019-05-24 17:36:45 +02:00
2024-06-29 12:20:04 +02:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2023-09-01 12:21:32 -07:00
2018-08-02 18:54:03 -04:00
2023-07-09 22:47:48 +01:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2023-07-09 22:47:48 +01:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2024-06-15 10:49:21 +02:00
2021-09-30 10:08:01 +02:00
2024-05-03 07:00:14 +01:00
2021-09-30 10:08:01 +02:00
2021-09-30 10:08:01 +02:00
2024-08-09 07:56:37 +02:00
2021-09-30 10:08:01 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2017-11-02 11:10:55 +01:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-07-09 22:47:48 +01:00
2024-08-09 07:56:38 +02:00
2019-05-30 11:26:37 -07:00
2023-07-09 22:47:48 +01:00
2023-11-23 12:10:32 +01:00
2019-05-21 11:28:39 +02:00
2024-08-09 07:56:38 +02:00
2019-05-21 11:28:39 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-06-05 17:36:37 +02:00
2023-09-09 08:15:11 +01:00
2017-12-28 13:16:01 -05:00
2019-05-30 11:26:37 -07:00
2024-08-09 07:56:37 +02:00
2020-11-27 13:05:07 +01:00
2021-11-19 16:38:38 +00:00
2024-08-09 07:56:37 +02:00
2019-10-10 07:05:51 -03:00
2019-05-30 11:26:37 -07:00
2024-08-09 07:56:37 +02:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2024-05-03 11:03:01 +01:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-06-10 15:01:38 -04:00
2019-05-24 17:36:45 +02:00
2024-08-09 07:56:37 +02:00
2019-06-10 15:01:38 -04:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2024-07-28 15:49:18 -07:00
2019-05-30 11:26:37 -07:00
2024-02-28 16:00:33 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2018-09-12 07:19:58 -04:00
2024-05-31 13:51:16 +02:00
2021-09-30 10:08:02 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2024-02-16 11:46:32 +01:00
2019-05-24 17:36:45 +02:00
2024-08-09 07:56:37 +02:00
2019-06-10 14:59:04 -04:00
2021-09-30 10:08:01 +02:00
2021-09-30 10:08:01 +02:00
2023-07-09 22:47:48 +01:00
2019-10-07 07:50:41 -03:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2020-11-16 10:31:16 +01:00
2022-08-29 15:32:13 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2024-02-16 11:46:32 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2023-09-09 08:15:11 +01:00
2024-05-03 11:18:26 +01:00
2019-05-24 17:36:45 +02:00
2019-05-21 11:28:39 +02:00
2024-08-09 07:56:37 +02:00
2019-05-21 11:28:39 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2020-09-27 11:26:00 +02:00
2024-05-03 11:08:08 +01:00
2018-01-04 13:12:01 -05:00
2019-05-24 17:39:01 +02:00
2024-08-09 07:56:37 +02:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2020-04-14 10:36:18 +02:00
2023-04-11 16:59:14 +02:00
2020-09-30 18:50:20 +02:00
2024-02-16 11:46:31 +01:00
2024-02-16 11:46:31 +01:00
2023-09-09 08:15:11 +01:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2023-09-09 08:15:11 +01:00
2019-05-30 11:26:37 -07:00