Skip to contentSkip to conversation

CVE-2026-46222: media: rockchip: rkcif: Add missing MUST_CONNECT flag to pads

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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: rockchip: rkcif: Add missing MUST_CONNECT flag to pads

The pads missed checks for connected devices which may a null dereference when the stream is enabled.

Unable to handle kernel NULL pointer dereference at virtual address
0000000000000020
pc : rkcif_interface_enable_streams+0x48/0xf0
lr : rkcif_interface_enable_streams+0x44/0xf0
Call trace:
 rkcif_interface_enable_streams+0x48/0xf0
 v4l2_subdev_enable_streams+0x26c/0x3f0
 rkcif_stream_start_streaming+0x140/0x278
 vb2_start_streaming+0x74/0x188
 vb2_core_streamon+0xe0/0x1d8
 vb2_ioctl_streamon+0x60/0xa8
 v4l_streamon+0x2c/0x40
 __video_do_ioctl+0x34c/0x400
 video_usercopy+0x2d0/0x800
 video_ioctl2+0x20/0x60
 v4l2_ioctl+0x48/0x78

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

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

	Issue introduced in 6.19 with commit 85411d17bee99b0a99e983f37188f9cdacfded54 and fixed in 7.0.9 with commit 318142640590342bfec7aa06d0bdcd0ddbf953d0
	Issue introduced in 6.19 with commit 85411d17bee99b0a99e983f37188f9cdacfded54 and fixed in 7.1-rc1 with commit 8e3c751259dc2d1325838eff26f41032523c7b57

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

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/rockchip/rkcif/rkcif-interface.c drivers/media/platform/rockchip/rkcif/rkcif-stream.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/318142640590342bfec7aa06d0bdcd0ddbf953d0
	https://git.kernel.org/stable/c/8e3c751259dc2d1325838eff26f41032523c7b57