Linux kernel use-after-free in imon display close
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's imon media driver can use a freed USB interface device pointer during display_close(). This can occur when a local userspace process keeps /dev/lcd0 open after the device disconnects, then closes the file descriptor; no authentication requirement is specified.
Engineers running Linux kernels with the imon media driver should check their kernel version against the vendor advisory; affected versions were not provided.