CVE-2026-99509 in Linuxinfo

Summary

by MITRE • 11/19/2026

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.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/19/2026

The Linux kernel media subsystem contains a critical memory safety vulnerability within the IMON driver, specifically affecting the handling of USB interface disconnection events for LCD devices such as /dev/lcd0. This flaw manifests as a use-after-free condition triggered during the lifecycle management of user-space file descriptors associated with these hardware interfaces. The root cause lies in the improper reference counting and pointer retention strategy employed by the driver when managing its internal context structure, denoted as ictx. Specifically, the field ictx->dev holds a raw pointer to the embedded device within the usb_interface object rather than maintaining a valid kernel reference count that would prevent premature deallocation. This architectural choice creates a race condition window where the validity of this pointer is not guaranteed once the USB subsystem initiates teardown procedures.

The operational sequence leading to exploitation begins when a user-space application opens a file descriptor for the IMON LCD device, thereby keeping the driver context active from an application perspective. Subsequently, if the physical USB device is disconnected or the interface is otherwise detached by the system, the usb_disconnect function executes and drops the last reference on the underlying usb_interface object. Because the driver failed to increment the device's reference count prior to this point, the kernel proceeds to free the memory associated with that interface immediately upon disconnection. At this stage, while the hardware connection is severed and its resources reclaimed by the kernel, the user-space file descriptor remains open in the application context, leaving ictx->dev pointing to a region of memory that has already been returned to the allocator pool or marked as free.

The vulnerability culminates when the user-space process eventually closes the previously opened file descriptor. This action invokes the display_close callback within the IMON driver code path. During this cleanup routine, the kernel attempts to log debug information by calling dev_dbg on ictx->dev. Since the underlying usb_interface has already been freed due to the earlier disconnection event, this dereference operation accesses invalid memory. In a worst-case scenario involving crafted timing or specific allocator states, this use-after-free can lead to arbitrary code execution, kernel panic, or privilege escalation, as the attacker may control the contents of the reclaimed memory region which is then interpreted as part of the device structure during the debug logging call.

From a classification perspective, this vulnerability aligns with CWE-416, Use After Free, where software continues to use a pointer after it has been freed, leading to undefined behavior and potential security breaches. Furthermore, within the MITRE ATT&CK framework for enterprise environments, this flaw relates to techniques involving exploitation of memory corruption vulnerabilities, which can be leveraged in post-exploitation phases to gain higher privileges or maintain persistence on compromised systems. The lack of proper synchronization between user-space file descriptor lifecycles and kernel-side resource management highlights a fundamental gap in the driver's state machine logic regarding hot-plug scenarios.

To mitigate this vulnerability, the recommended remediation involves modifying the display_close and free_imon_context functions to eliminate the reliance on ictx->dev for debug logging purposes during teardown sequences that may occur after device detachment. The most robust solution is to remove the dev_dbg calls that dereference the potentially freed pointer entirely from these code paths. Alternatively, if such diagnostic information is deemed critical for operational visibility, the driver must be updated to properly acquire and hold a reference count on the usb_device object before initiating any operations that might outlive the interface's active state. This ensures that the device structure remains valid until all associated user-space handles are closed, thereby preventing access to freed memory regions. System administrators should apply kernel updates containing this patch immediately to close this security gap in systems utilizing IMON hardware interfaces.

Responsible

Linux

Reservation

09/25/2026

Disclosure

11/19/2026

Moderation

accepted

CPE

ready

EPSS

0.00213

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!