Skip to contentSkip to conversation

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

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-99465 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.12 with commit d6701f13bd0747a78bb0b78dd45344e475afd512 and fixed in 6.12.117 with commit e89700269a8158781cb0053589a0d7f206bdf7cb
	Issue introduced in 5.12 with commit d6701f13bd0747a78bb0b78dd45344e475afd512 and fixed in 6.18.61 with commit 1711d758ede7ad6dc9f9b96366a6eea5c8c867df
	Issue introduced in 5.12 with commit d6701f13bd0747a78bb0b78dd45344e475afd512 and fixed in 7.3.2 with commit f402682026d589474209816ef37dbeb945ebdb62
	Issue introduced in 5.12 with commit d6701f13bd0747a78bb0b78dd45344e475afd512 and fixed in 7.4-rc1 with commit f2eb2fd388bf3f1959556a326e797cacca341c86

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-99465

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/platform/microchip/microchip-isc-base.c drivers/media/platform/microchip/microchip-sama5d2-isc.c drivers/media/platform/microchip/microchip-sama7g5-isc.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/e89700269a8158781cb0053589a0d7f206bdf7cb
	https://git.kernel.org/stable/c/1711d758ede7ad6dc9f9b96366a6eea5c8c867df
	https://git.kernel.org/stable/c/f402682026d589474209816ef37dbeb945ebdb62
	https://git.kernel.org/stable/c/f2eb2fd388bf3f1959556a326e797cacca341c86