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
..
2016-09-27 11:43:24 +03:00
2014-07-01 13:32:30 +03:00
2018-02-25 11:05:44 +01:00
2015-06-23 16:23:30 -07:00
2016-02-26 13:28:35 +02:00
2016-02-26 13:28:35 +02:00
2016-05-27 15:26:11 -07:00
2015-10-08 12:19:39 +03:00
2021-03-03 17:44:34 +01:00
2016-08-30 11:57:21 +03:00
2016-02-26 12:16:58 +02:00
2016-02-26 13:28:35 +02:00
2015-11-10 10:00:09 -08:00