diff options
author | Hyunwoo Kim <imv4bel@gmail.com> | 2022-09-25 06:32:43 -0700 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-10-08 15:20:09 +0200 |
commit | 5610bcfe8693c02e2e4c8b31427f1bdbdecc839c (patch) | |
tree | 0c333e5ee6640fb5f8a318194b49e4348c40d0ca /fs/xfs/libxfs/xfs_alloc.c | |
parent | e69dade8a4cfe49f3f3af90d966dd34b67721d26 (diff) |
fbdev: smscufx: Fix use-after-free in ufx_ops_open()
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.c')
0 files changed, 0 insertions, 0 deletions