OrangePi_CM5/drivers/video
Hyunwoo Kim e504729496 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:25:11 +02:00
..
backlight backlight: qcom-wled: Respect enabled-strings in set_brightness 2022-01-27 10:53:59 +01:00
console parisc/stifb: Fix fb_is_primary_device() only available with CONFIG_FB_STI 2022-06-29 08:59:53 +02:00
fbdev fbdev: smscufx: Fix use-after-free in ufx_ops_open() 2022-10-26 13:25:11 +02:00
logo .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kconfig
Makefile
display_timing.c
hdmi.c drm-misc-next for v5.9: 2020-06-24 15:45:51 +10:00
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c