Skip to contentSkip to conversation

CVE-2026-89872: media: v4l2-fwnode: Fix fwnode leak in v4l2_fwnode_parse_link

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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: v4l2-fwnode: Fix fwnode leak in v4l2_fwnode_parse_link

In v4l2_fwnode_parse_link(), the remote endpoint fwnode reference is acquired using fwnode_graph_get_remote_endpoint(). This reference is properly released in the error paths, but it is leaked on the success path.

Add the missing fwnode_handle_put() before returning 0 to prevent the reference leak.

[Sakari Ailus: Fix subject prefix and coding style a little.]

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

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

	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 5.10.270 with commit c9b5238d173ee9b94dcaa2b34244ea89c8024feb
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 5.15.221 with commit ccd8d1d80afab8b492a583ae81bfd295835bab2f
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 6.1.188 with commit d92dc4692834e04bc0ef1d0908589852050d1a66
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 6.6.157 with commit ef609b3ce456f021320fee2fb7e45094a3ccf232
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 6.12.110 with commit 578c4bfa28bf21458ecdde2fd3fc429475f34c10
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 6.18.51 with commit 3ced388b7908270529e5aa6d221840114b6c33bc
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 7.2.5 with commit 881aafb139520570fd3390bf9938d7098b7fbb99
	Issue introduced in 4.13 with commit ca50c197bd9610ea984cfc0dc6855f183cbb46f8 and fixed in 7.3-rc1 with commit a6e86efd7f85e519bf48417f41923f8bd51f1597

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

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/v4l2-core/v4l2-fwnode.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/c9b5238d173ee9b94dcaa2b34244ea89c8024feb
	https://git.kernel.org/stable/c/ccd8d1d80afab8b492a583ae81bfd295835bab2f
	https://git.kernel.org/stable/c/d92dc4692834e04bc0ef1d0908589852050d1a66
	https://git.kernel.org/stable/c/ef609b3ce456f021320fee2fb7e45094a3ccf232
	https://git.kernel.org/stable/c/578c4bfa28bf21458ecdde2fd3fc429475f34c10
	https://git.kernel.org/stable/c/3ced388b7908270529e5aa6d221840114b6c33bc
	https://git.kernel.org/stable/c/881aafb139520570fd3390bf9938d7098b7fbb99
	https://git.kernel.org/stable/c/a6e86efd7f85e519bf48417f41923f8bd51f1597