Skip to contentSkip to conversation

CVE-2026-43189: media: v4l2-async: Fix error handling on steps after finding a match

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

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-async: Fix error handling on steps after finding a match

Once an async connection is found to be matching with an fwnode, a sub-device may be registered (in case it wasn't already), its bound operation is called, ancillary links are created, the async connection is added to the sub-device's list of connections and removed from the global waiting connection list. Further on, the sub-device's possible own notifier is searched for possible additional matches.

Fix these specific issues:

- If v4l2_async_match_notify() failed before the sub-notifier handling, the async connection was unbound and its entry removed from the sub-device's async connection list. The latter part was also done in v4l2_async_match_notify().

- The async connection's sd field was only set after creating ancillary links in v4l2_async_match_notify(). It was however dereferenced in v4l2_async_unbind_subdev_one(), which was called on error path of v4l2_async_match_notify() failure.

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

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

	Fixed in 6.6.128 with commit 30aaed311f973f13ba13a0cd2dc0202f595fff48
	Fixed in 6.12.75 with commit 461733d83e67ba7e3a5b750c0d203f738e01244f
	Fixed in 6.18.16 with commit b02bcb378efa8af07827f49b3afcc5e825318c55
	Fixed in 6.19.6 with commit 2de0a3c8148fc3dbea21981e6569f550b3626119
	Fixed in 7.0 with commit 7345d6d356336c448d6b9230ed8704f39679fd12

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

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-async.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/30aaed311f973f13ba13a0cd2dc0202f595fff48
	https://git.kernel.org/stable/c/461733d83e67ba7e3a5b750c0d203f738e01244f
	https://git.kernel.org/stable/c/b02bcb378efa8af07827f49b3afcc5e825318c55
	https://git.kernel.org/stable/c/2de0a3c8148fc3dbea21981e6569f550b3626119
	https://git.kernel.org/stable/c/7345d6d356336c448d6b9230ed8704f39679fd12