Hyunwoo Kim 70faf9d9b6 fbdev: smscufx: Fix several use-after-free bugs
commit cc67482c9e5f2c80d62f623bcc347c29f9f648e1 upstream.

Several types of UAFs can occur when physically removing a USB device.

Adds ufx_ops_destroy() function to .fb_destroy of fb_ops, and
in this function, there is kref_put() that finally calls ufx_free().

This fix prevents multiple UAFs.

Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
Link: https://lore.kernel.org/linux-fbdev/20221011153436.GA4446@ubuntu/
Cc: <stable@vger.kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-03 23:52:28 +09:00
..
2018-06-17 05:00:24 +09:00
2018-06-17 05:00:24 +09:00
2017-09-04 16:00:49 +02:00
2018-06-12 16:19:22 -07:00
2021-03-04 09:39:38 +01:00
2018-03-12 17:06:54 +01:00
2018-06-12 16:19:22 -07:00