CVE-2026-99465 in Linuxinfo

Summary

by MITRE • 11/19/2026

In the Linux kernel, the following vulnerability has been resolved:

media: microchip-isc: take a reference on the parsed endpoints

for_each_endpoint_of_node() drops the reference on the current node as it advances. xisc_parse_dt() and isc_parse_dt() store the node in subdev_entity->epn and release it later with of_node_put(), but never took their own reference, so the stored pointer refers to an already-released node. This underflows the refcount and can use-after-free, reachable through the camera device tree overlay.

Take a reference with of_node_get() when storing the node, and drop it in microchip_isc_subdev_cleanup() so the entities the bind loop never reaches on an early exit do not leak it.

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

Analysis

by VulDB Data Team • 11/20/2026

The Linux kernel media subsystem contains a critical memory management flaw within the Microchip Image Signal Controller driver that results in reference count underflow and potential use-after-free conditions. This vulnerability stems from improper handling of device tree node references during the parsing process. Specifically, the macro for_each_endpoint_of_node() is designed to iterate through endpoint nodes associated with a parent device tree node. As part of its standard operation, this macro automatically drops the reference on the current node as it advances to the next one in the iteration sequence. However, the functions xisc_parse_dt and isc_parse_dt store pointers to these endpoints within the subdev_entity structure without first acquiring their own independent reference count using of_node_get(). Consequently, when the loop completes or exits early due to an error condition, the stored pointer references a node whose reference has already been decremented by the iteration macro. This leads to a situation where the kernel believes it still holds a valid reference while the underlying object may have been freed if no other active references exist, creating a classic use-after-free scenario that can be triggered through camera device tree overlays.

The operational impact of this vulnerability is severe, as it allows for memory corruption and potential arbitrary code execution depending on how the kernel manages the freed memory structures. An attacker with access to modify or inject device tree overlays could exploit this race condition or state inconsistency to corrupt kernel memory. The flaw specifically affects scenarios where the driver binds entities during initialization. If an early exit occurs in the bind loop, such as due to a configuration error or missing hardware dependency, the cleanup routine microchip_isc_subdev_cleanup may not be invoked for all previously allocated subdevice entities. This means that even if the reference counting were corrected elsewhere, improper handling of these stored pointers during partial initialization could lead to resource leaks or further instability. The combination of dropping references prematurely and failing to take new ones creates a fragile state where memory safety guarantees are violated, potentially leading to system crashes or security breaches via kernel exploitation techniques.

To mitigate this vulnerability, the driver implementation must be updated to strictly adhere to device tree reference counting conventions. When storing a pointer to an endpoint node within subdev_entity->epn, the code must explicitly call of_node_get() to increment the reference count and ensure that the object remains valid for as long as it is referenced by the driver structure. Furthermore, cleanup logic in microchip_isc_subdev_cleanup must be robust enough to handle cases where the bind loop exits early. This involves ensuring that any stored endpoint references are properly released with of_node_put() regardless of whether the full initialization sequence completes successfully. By taking a reference at storage time and releasing it during dedicated cleanup phases, the driver maintains accurate tracking of object lifetimes. This prevents both use-after-free errors caused by premature deallocation and memory leaks resulting from unreleased references on early exits. Adhering to these practices aligns with standard kernel development guidelines for device tree handling and ensures long-term stability and security of the media subsystem components involved in camera interface operations.

Responsible

Linux

Reservation

09/25/2026

Disclosure

11/19/2026

Moderation

accepted

CPE

ready

EPSS

0.00176

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!