diff options
| author | Steve Cohen <[email protected]> | 2020-07-20 18:30:50 -0400 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2020-07-27 22:05:51 +0200 |
| commit | 8490d6a7e0a0a6fab5c2d82d57a3937306660864 (patch) | |
| tree | 4c48fca4801198cf553f3ec0438fb069a6516615 /drivers/usb/cdns3/cdns3-ep0.c | |
| parent | 900ab59e2621053b009f707f80b2c19ce0af5dee (diff) | |
drm: hold gem reference until object is no longer accessed
A use-after-free in drm_gem_open_ioctl can happen if the
GEM object handle is closed between the idr lookup and
retrieving the size from said object since a local reference
is not being held at that point. Hold the local reference
while the object can still be accessed to fix this and
plug the potential security hole.
Signed-off-by: Steve Cohen <[email protected]>
Cc: [email protected]
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ep0.c')
0 files changed, 0 insertions, 0 deletions