Skip to contentSkip to conversation

CVE-2026-89874: media: v4l2-async: avoid deleting unlinked ASC entry on link error

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-async: avoid deleting unlinked ASC entry on link error

v4l2_async_match_notify() creates ancillary media links before adding asc->asc_subdev_entry to sd->asc_list.

If ancillary link creation fails, the function jumps to err_call_unbind while asc_subdev_entry has not been linked yet. Async connections are zero-allocated, so the list entry still has NULL next and prev pointers on this path. Calling list_del() on it can therefore dereference NULL instead of returning the original link creation error.

Do not delete asc_subdev_entry from err_call_unbind. There is no list insertion to undo on this path; the bound callback and sub-device registration are the operations that need to be rolled back.

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

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

	Issue introduced in 6.6 with commit 28a1295795d85a25f2e7dd391c43969e95fcb341 and fixed in 6.6.157 with commit d273571e531405426983c6a45ec635c7d0415eed
	Issue introduced in 6.6 with commit 28a1295795d85a25f2e7dd391c43969e95fcb341 and fixed in 6.12.110 with commit caac13f518d83974e9884d1eeda3d4cc3bb92978
	Issue introduced in 6.6 with commit 28a1295795d85a25f2e7dd391c43969e95fcb341 and fixed in 6.18.51 with commit 3345746e0957bce6c53644838e4955710a82a962
	Issue introduced in 6.6 with commit 28a1295795d85a25f2e7dd391c43969e95fcb341 and fixed in 7.2.5 with commit a57d94026cb4fd7b3d258f0db2ad391cbccfaba5
	Issue introduced in 6.6 with commit 28a1295795d85a25f2e7dd391c43969e95fcb341 and fixed in 7.3-rc1 with commit 47d82b605351c0e04f6365e42c8ffe2fcfdba615

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

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/d273571e531405426983c6a45ec635c7d0415eed
	https://git.kernel.org/stable/c/caac13f518d83974e9884d1eeda3d4cc3bb92978
	https://git.kernel.org/stable/c/3345746e0957bce6c53644838e4955710a82a962
	https://git.kernel.org/stable/c/a57d94026cb4fd7b3d258f0db2ad391cbccfaba5
	https://git.kernel.org/stable/c/47d82b605351c0e04f6365e42c8ffe2fcfdba615