Hyunwoo Kim
70faf9d9b6
fbdev: smscufx: Fix several use-after-free bugs
...
commit cc67482c9e5f2c80d62f623bcc347c29f9f648e1 upstream.
Several types of UAFs can occur when physically removing a USB device.
Adds ufx_ops_destroy() function to .fb_destroy of fb_ops, and
in this function, there is kref_put() that finally calls ufx_free().
This fix prevents multiple UAFs.
Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
Link: https://lore.kernel.org/linux-fbdev/20221011153436.GA4446@ubuntu/
Cc: <stable@vger.kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-03 23:52:28 +09:00
..
2020-10-29 09:55:09 +01:00
2022-08-25 11:14:53 +02:00
2018-02-15 01:15:52 +01:00
2017-11-02 11:10:55 +01:00
2018-01-17 08:16:46 -06:00
2021-09-22 11:48:04 +02:00
2018-03-28 16:34:28 +02:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-17 05:00:24 +09:00
2022-04-15 14:14:55 +02:00
2018-07-24 19:11:28 +02:00
2022-04-15 14:14:55 +02:00
2021-09-22 11:48:04 +02:00
2018-04-24 18:11:21 +02:00
2022-08-25 11:15:24 +02:00
2018-03-12 17:06:54 +01:00
2018-07-24 19:11:28 +02:00
2017-09-04 16:00:49 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-08-25 11:15:24 +02:00
2018-07-31 13:06:58 +02:00
2022-08-25 11:15:27 +02:00
2021-09-22 11:48:04 +02:00
2017-11-02 11:10:55 +01:00
2022-04-15 14:14:41 +02:00
2017-11-02 11:10:55 +01:00
2020-12-30 11:25:54 +01:00
2018-06-17 05:00:24 +09:00
2018-05-15 12:41:11 +02:00
2018-01-04 16:53:49 +01:00
2018-06-12 16:19:22 -07:00
2017-08-07 17:22:13 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2022-09-15 12:17:05 +02:00
2022-04-15 14:14:55 +02:00
2019-02-12 19:47:15 +01:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:33 +01:00
2017-09-04 16:00:49 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:31 +01:00
2020-08-26 10:31:05 +02:00
2017-09-04 16:00:50 +02:00
2017-08-07 17:22:13 +02:00
2017-09-04 16:00:49 +02:00
2018-07-24 19:11:26 +02:00
2018-07-24 19:11:27 +02:00
2017-09-04 16:00:49 +02:00
2021-05-26 11:48:35 +02:00
2021-01-12 20:10:20 +01:00
2022-08-25 11:15:47 +02:00
2021-05-26 11:48:34 +02:00
2018-06-12 16:19:22 -07:00
2021-03-04 09:39:38 +01:00
2017-08-07 17:22:13 +02:00
2018-01-16 16:47:29 +01:00
2018-05-14 15:47:30 +02:00
2017-09-04 16:00:50 +02:00
2018-07-24 19:11:26 +02:00
2018-06-12 16:19:22 -07:00
2020-08-19 08:14:51 +02:00
2018-03-12 17:06:54 +01:00
2017-08-07 17:22:13 +02:00
2022-09-05 10:26:34 +02:00
2017-08-01 17:20:45 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:49 +02:00
2020-11-05 11:08:39 +01:00
2022-09-28 11:02:53 +02:00
2017-11-02 11:10:55 +01:00
2020-02-24 08:34:36 +01:00
2017-11-02 11:10:55 +01:00
2020-08-19 08:14:54 +02:00
2018-07-24 19:11:26 +02:00
2017-09-04 16:00:50 +02:00
2018-03-26 15:56:46 +02:00
2018-03-28 16:34:29 +02:00
2022-08-25 11:15:27 +02:00
2017-10-17 16:01:13 +02:00
2017-10-17 16:01:13 +02:00
2019-11-24 08:20:36 +01:00
2017-11-02 11:10:55 +01:00
2018-05-14 15:47:30 +02:00
2018-05-14 15:47:30 +02:00
2018-07-03 17:43:09 +02:00
2018-06-15 18:10:01 -03:00
2018-04-26 12:24:18 +02:00
2019-05-25 18:23:36 +02:00
2022-04-15 14:14:56 +02:00
2022-11-03 23:52:28 +09:00
2019-10-07 18:56:30 +02:00
2017-11-02 11:10:55 +01:00
2022-10-26 13:19:21 +02:00
2017-08-01 17:20:43 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:41 +02:00
2017-08-07 17:22:13 +02:00
2018-07-24 19:11:28 +02:00
2018-07-24 19:11:28 +02:00
2022-04-15 14:14:55 +02:00
2018-06-12 16:19:22 -07:00
2018-01-04 16:53:50 +01:00
2020-10-29 09:55:09 +01:00
2017-12-29 19:48:44 +01:00
2022-08-25 11:15:26 +02:00
2022-04-15 14:14:55 +02:00
2017-12-29 19:48:43 +01:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-08-21 16:49:57 +02:00