CVE-2026-99509: media: imon: fix use-after-free in display_close via dev_dbg
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-99509 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.35 with commit 21677cfc562a27e099719d413287bc8d1d24deb7 and fixed in 6.12.117 with commit 883eee3a9e66add5dc93455dfca5b0ba5294c2d4 Issue introduced in 2.6.35 with commit 21677cfc562a27e099719d413287bc8d1d24deb7 and fixed in 6.18.61 with commit c33165bb785cb0b496a196a5ca50b9d725bb7f82 Issue introduced in 2.6.35 with commit 21677cfc562a27e099719d413287bc8d1d24deb7 and fixed in 7.3.2 with commit a7962198ab367f732a8ced1682f2738d712ad473 Issue introduced in 2.6.35 with commit 21677cfc562a27e099719d413287bc8d1d24deb7 and fixed in 7.4-rc1 with commit 118a3590a4080c71c565265b05b3f92e814d7647
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99509
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/rc/imon.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/883eee3a9e66add5dc93455dfca5b0ba5294c2d4 https://git.kernel.org/stable/c/c33165bb785cb0b496a196a5ca50b9d725bb7f82 https://git.kernel.org/stable/c/a7962198ab367f732a8ced1682f2738d712ad473 https://git.kernel.org/stable/c/118a3590a4080c71c565265b05b3f92e814d7647