Skip to contentSkip to conversation

CVE-2026-89873: media: v4l2-ctrls: validate HEVC EXT SPS RPS counts

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-ctrls: validate HEVC EXT SPS RPS counts

The HEVC SPS control carries the short-term and long-term RPS counts that decoder drivers use to walk the matching EXT SPS dynamic arrays. Reject SPS values that exceed the HEVC limits of 64 short-term sets and 32 long-term references so drivers cannot later index beyond those controls.

Also reject EXT SPS ST RPS entries whose negative or positive picture counts exceed the 16-entry arrays, or whose combined delta-POC count exceeds the HEVC DPB maximum.

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

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

	Issue introduced in 7.0 with commit c9a59dc2acc72789d5c778af080d1e65af84862c and fixed in 7.2.5 with commit 30f85a7c59113a8844b276efc010085a34f912e9
	Issue introduced in 7.0 with commit c9a59dc2acc72789d5c778af080d1e65af84862c and fixed in 7.3-rc1 with commit 796b5c6d4f1615d59d5d8fe5a38fae6bfdfe878e

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

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-ctrls-core.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/30f85a7c59113a8844b276efc010085a34f912e9
	https://git.kernel.org/stable/c/796b5c6d4f1615d59d5d8fe5a38fae6bfdfe878e