Hyunwoo Kim
347a969b13
fbdev: smscufx: Fix use-after-free in ufx_ops_open()
...
commit 5610bcfe8693c02e2e4c8b31427f1bdbdecc839c upstream.
A race condition may occur if the user physically removes the
USB device while calling open() for this device node.
This is a race condition between the ufx_ops_open() function and
the ufx_usb_disconnect() function, which may eventually result in UAF.
So, add a mutex to the ufx_ops_open() and ufx_usb_disconnect() functions
to avoid race contidion of krefs.
Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 13:15:37 +02:00
..
2018-11-21 09:26:00 +01:00
2022-04-20 09:06:32 +02:00
2018-02-22 15:43:55 +01:00
2016-09-27 11:08:15 +03:00
2016-09-07 11:16:05 +03:00
2021-09-22 11:43:05 +02:00
2016-09-27 11:43:24 +03:00
2016-08-30 12:00:15 +03:00
2014-07-01 13:32:30 +03:00
2018-02-25 11:05:44 +01:00
2022-04-20 09:06:38 +02:00
2018-09-26 08:36:32 +02:00
2022-04-20 09:06:39 +02:00
2021-09-22 11:43:05 +02:00
2016-09-27 11:16:35 +03:00
2020-10-29 09:05:35 +01:00
2015-11-06 17:50:42 -08:00
2018-09-26 08:36:32 +02:00
2014-06-24 10:55:13 +03:00
2016-03-09 14:57:51 +01:00
2016-08-30 11:54:23 +03:00
2016-08-11 17:54:54 +03:00
2016-11-03 12:20:14 +02:00
2016-08-11 17:54:54 +03:00
2022-06-14 16:52:34 +02:00
2015-06-23 16:23:30 -07:00
2016-09-27 11:16:35 +03:00
2015-08-25 09:59:45 +02:00
2021-09-22 11:43:05 +02:00
2022-04-20 09:06:30 +02:00
2018-02-22 15:43:49 +01:00
2016-02-26 13:28:35 +02:00
2014-07-30 14:10:39 +02:00
2017-12-20 10:07:27 +01:00
2015-12-15 15:41:23 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2016-02-26 13:28:35 +02:00
2016-08-30 12:06:12 +03:00
2016-08-02 19:35:05 -04:00
2014-10-20 16:21:51 +02:00
2015-09-30 10:33:57 +03:00
2016-02-26 13:06:11 +02:00
2016-02-26 13:06:11 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2022-09-15 12:39:46 +02:00
2022-04-20 09:06:39 +02:00
2019-02-12 19:44:56 +01:00
2014-10-20 16:21:51 +02:00
2017-08-06 18:59:48 -07:00
2015-03-23 14:29:40 +11:00
2017-12-20 10:07:27 +01:00
2014-09-30 13:06:01 +03:00
2016-05-27 15:26:11 -07:00
2018-11-10 07:42:45 -08:00
2016-03-09 14:57:51 +01:00
2014-05-23 13:51:10 +03:00
2014-10-20 16:21:51 +02:00
2015-12-09 12:57:06 +02:00
2016-03-09 14:57:51 +01:00
2019-04-03 06:24:14 +02:00
2014-10-20 16:21:51 +02:00
2015-10-08 12:19:39 +03:00
2016-09-27 11:16:35 +03:00
2021-05-26 11:29:09 +02:00
2014-10-20 16:21:51 +02:00
2015-06-07 15:28:57 +02:00
2021-01-12 19:49:03 +01:00
2022-08-25 11:09:32 +02:00
2021-05-26 11:29:07 +02:00
2016-05-10 11:42:25 +03:00
2021-03-03 17:44:34 +01:00
2014-10-20 16:21:51 +02:00
2016-09-27 11:05:29 +03:00
2016-02-16 14:52:43 +02:00
2016-08-30 11:57:21 +03:00
2016-08-30 11:59:33 +03:00
2016-02-26 12:16:58 +02:00
2020-08-21 11:01:58 +02:00
2016-03-09 14:57:51 +01:00
2016-01-29 13:34:07 +02:00
2016-09-27 10:55:02 +03:00
2014-10-20 16:21:51 +02:00
2015-03-23 14:29:40 +11:00
2022-09-15 12:39:44 +02:00
2015-06-03 12:41:52 +03:00
2016-02-26 13:06:11 +02:00
2017-11-15 15:53:11 +01:00
2020-11-10 10:23:53 +01:00
2022-09-28 10:55:44 +02:00
2020-02-28 15:42:17 +01:00
2020-08-21 11:02:00 +02:00
2015-12-15 15:41:24 +02:00
2016-09-27 11:16:35 +03:00
2016-08-11 17:54:55 +03:00
2016-08-11 17:54:55 +03:00
2016-03-09 14:57:51 +01:00
2015-08-25 09:59:45 +02:00
2016-03-09 14:57:51 +01:00
2014-12-05 16:30:25 +00:00
2019-11-25 09:53:41 +01:00
2014-10-20 16:21:51 +02:00
2015-04-07 16:24:15 +03:00
2014-12-18 20:28:33 -08:00
2016-09-27 11:21:36 +03:00
2016-02-26 13:28:35 +02:00
2018-03-24 11:00:21 +01:00
2019-05-25 18:26:52 +02:00
2022-04-20 09:06:40 +02:00
2022-10-26 13:15:37 +02:00
2019-10-07 18:53:09 +02:00
2022-10-26 13:15:37 +02:00
2016-03-03 13:36:51 +02:00
2016-03-03 13:36:51 +02:00
2016-03-03 13:36:51 +02:00
2014-10-20 16:21:51 +02:00
2016-09-27 11:16:35 +03:00
2015-11-10 10:00:09 -08:00
2018-03-24 11:00:21 +01:00
2018-07-03 11:23:16 +02:00
2014-09-30 13:06:01 +03:00
2015-06-16 09:42:11 +03:00
2018-04-13 19:48:10 +02:00
2020-10-29 09:05:35 +01:00
2015-01-13 13:35:04 +02:00
2015-08-25 09:59:45 +02:00
2022-04-20 09:06:39 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2017-04-21 09:31:21 +02:00
2014-10-20 16:21:51 +02:00