Linux kernel use-after-free in microchip-isc endpoint parsing
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: 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.
From the CVE record · Linux
The Linux kernel's microchip-isc driver stores a device tree endpoint pointer without taking its own reference, which can underflow the reference count and cause a use-after-free. The issue is reachable through a camera device tree overlay; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the microchip-isc driver should check their versions; affected versions are not specified.