Hyunwoo Kim
3742e9fd55
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:22:16 +02:00
..
2020-10-29 09:57:38 +01:00
2022-08-25 11:17:22 +02:00
2019-05-30 11:26:32 -07:00
2019-06-28 12:30:08 +02:00
2021-09-22 12:26:29 +02:00
2019-06-14 14:21:11 -06:00
2019-07-09 09:55:45 -07:00
2019-06-28 12:30:08 +02:00
2019-08-19 15:52:28 +02:00
2022-04-15 14:18:23 +02:00
2019-08-09 19:51:52 -05:00
2022-04-15 14:18:24 +02:00
2021-09-22 12:26:29 +02:00
2020-08-19 08:16:00 +02:00
2022-08-25 11:18:06 +02:00
2019-05-24 17:36:46 +02:00
2019-08-19 15:52:28 +02:00
2019-08-20 19:44:01 -05:00
2019-06-19 17:09:55 +02:00
2022-08-25 11:18:06 +02:00
2019-06-28 12:30:08 +02:00
2018-10-08 12:57:37 +02:00
2022-08-25 11:18:09 +02:00
2021-09-22 12:26:29 +02:00
2019-04-01 17:46:55 +02:00
2019-04-01 17:46:55 +02:00
2019-04-01 17:46:55 +02:00
2019-04-01 17:46:55 +02:00
2022-04-15 14:18:02 +02:00
2022-04-15 14:18:07 +02:00
2019-06-03 16:00:08 +02:00
2019-06-03 16:00:08 +02:00
2019-07-23 17:14:55 +02:00
2019-05-21 10:50:45 +02:00
2019-11-04 10:48:14 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2022-09-15 12:04:54 +02:00
2022-04-15 14:18:23 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:39 +02:00
2019-06-21 15:13:14 +02:00
2019-05-30 11:26:32 -07:00
2019-07-09 09:55:45 -07:00
2019-06-19 17:09:55 +02:00
2019-08-26 17:54:00 +05:30
2019-05-21 10:50:45 +02:00
2020-08-26 10:41:04 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2021-10-13 10:08:19 +02:00
2019-06-05 17:36:37 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2021-05-26 12:05:21 +02:00
2019-05-21 10:50:45 +02:00
2021-01-12 20:16:17 +01:00
2022-08-25 11:18:38 +02:00
2021-05-26 12:05:18 +02:00
2021-07-14 16:53:26 +02:00
2021-03-04 10:26:18 +01:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:25:16 -07:00
2019-09-22 09:30:30 -07:00
2019-06-19 17:09:55 +02:00
2020-08-19 08:16:00 +02:00
2019-02-08 19:24:46 +01:00
2019-05-21 10:50:45 +02:00
2019-06-28 12:30:08 +02:00
2022-09-05 10:27:45 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2020-09-03 11:27:09 +02:00
2020-11-05 11:43:15 +01:00
2022-09-28 11:03:59 +02:00
2020-02-24 08:36:25 +01:00
2020-08-19 08:16:06 +02:00
2019-08-26 10:02:02 +02:00
2019-05-06 15:57:47 +02:00
2019-07-09 09:55:45 -07:00
2022-08-25 11:18:09 +02:00
2019-08-26 10:02:02 +02:00
2019-08-26 10:02:02 +02:00
2018-10-08 12:57:36 +02:00
2019-06-14 14:21:11 -06:00
2019-08-19 15:52:26 +02:00
2019-06-12 20:28:11 +02:00
2019-06-05 17:36:37 +02:00
2019-08-02 13:22:37 +02:00
2019-04-01 17:46:59 +02:00
2022-04-15 14:18:25 +02:00
2022-10-26 13:22:16 +02:00
2019-07-23 17:26:56 +02:00
2019-05-21 10:50:45 +02:00
2022-10-26 13:22:15 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-28 12:30:08 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:45 +02:00
2022-05-09 09:03:23 +02:00
2019-05-21 10:50:45 +02:00
2019-01-22 10:21:45 +01:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2020-10-29 09:57:38 +01:00
2020-06-17 16:40:33 +02:00
2019-06-05 17:36:37 +02:00
2022-08-25 11:18:09 +02:00
2022-04-15 14:18:23 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2019-08-02 13:20:22 +02:00
2019-06-05 17:36:37 +02:00
2019-04-01 17:46:57 +02:00