In the Linux kernel, the following vulnerability has been resolved: media: imon: fix use-after-free in display_close via dev_dbg ictx->dev is a raw pointer to the usb_interface's embedded device. On disconnect, usb_disconnect() can drop the last reference on the interface and free it while a userspace fd for /dev/lcd0 is still open. When that fd is later closed, display_close() dereferences the now-freed ictx->dev via dev_dbg(), causing a use-after-free. Remove the dev_dbg() calls that dereference ictx->dev in display_close() and free_imon_context(), rather than taking a reference on the device.
https://git.kernel.org/stable/c/c33165bb785cb0b496a196a5ca50b9d725bb7f82
https://git.kernel.org/stable/c/a7962198ab367f732a8ced1682f2738d712ad473
https://git.kernel.org/stable/c/883eee3a9e66add5dc93455dfca5b0ba5294c2d4
https://git.kernel.org/stable/c/118a3590a4080c71c565265b05b3f92e814d7647