Skip to contentSkip to conversation

CVE-2026-52907: media: rockchip: rkcif: fix off by one bugs

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 9

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: fix off by one bugs

Change these comparisons from > vs >= to avoid accessing one element beyond the end of the arrays.
While at it, use ARRAY_SIZE instead of the _MAX enum values.

[fix cosmetic issues]

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

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

	Issue introduced in 6.19 with commit 1f2353f5a1af995efbf7bea44341aa0d03460b28 and fixed in 7.0.4 with commit 73e119036b3a799170ed89907b4273c07306d611
	Issue introduced in 6.19 with commit 1f2353f5a1af995efbf7bea44341aa0d03460b28 and fixed in 7.1-rc1 with commit e4056b84af0fc18c84b4e5741df04ecd8ca17973

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

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-capture-mipi.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/73e119036b3a799170ed89907b4273c07306d611
	https://git.kernel.org/stable/c/e4056b84af0fc18c84b4e5741df04ecd8ca17973