Files
linux/drivers
Hyunwoo Kim e504729496 fbdev: smscufx: Fix use-after-free in ufx_ops_open()
commit 5610bcfe86 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:25:11 +02:00
..
2022-10-26 13:25:09 +02:00
2022-09-28 11:10:40 +02:00
2021-03-04 11:38:21 +01:00
2022-05-09 09:04:56 +02:00
2022-08-31 17:15:23 +02:00
2021-11-18 14:03:51 +01:00
2022-04-13 21:00:55 +02:00
2022-08-25 11:38:14 +02:00