Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
d6701f13bd0747a78bb0b78dd45344e475afd512 to < e89700269a8158781cb0053589a0d7f206bdf7cbaffectedd6701f13bd0747a78bb0b78dd45344e475afd512 to < 1711d758ede7ad6dc9f9b96366a6eea5c8c867dfaffectedd6701f13bd0747a78bb0b78dd45344e475afd512 to < f402682026d589474209816ef37dbeb945ebdb62affectedd6701f13bd0747a78bb0b78dd45344e475afd512 to < f2eb2fd388bf3f1959556a326e797cacca341c86affected
Linux Linux
Default version status: affected
5.12affected0 to < 5.12unaffected6.12.117 to ≤ 6.12.*unaffected6.18.61 to ≤ 6.18.*unaffected7.3.2 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected