Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 297B84F6498 for ; Wed, 16 Sep 2026 10:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555215; cv=none; b=qkeWA6JWXpTjcUS8PUYltZBWOvHh0MS/irDhaNoezKwcIS3t99z3oBLQ29wqlbxCz1XSGl6LsQbf/5+GokhWG04CoiNsXevy3pd9EvGiHW27/D6Ve+Wz2lZyqg23s6PtWTcTpoNmAbSObB2qNH2j1EVPAWobhoHmoDqrHxlaw8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555215; c=relaxed/simple; bh=3t4a+Ehz+z7fqq/NPqieG0Lxhp4tZ64PGRzOnW3um8E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rc6KioBrHZOiYbIhhvzXMbtFeBrEqzj+cyh5SqhrFMN7IcfBMLw06TREULIpo/1conPF4y7o6dfU1ouEozOAzsB6wtH0mV+PFJVg6IxChodV9xukTHKl5J/mwCXWvovormctT/oLdatX5dKHrZ9GcSp/bhtjMa8ZiL3sG06oFh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DTlWrAK+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DTlWrAK+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A590C1F008A1; Wed, 16 Sep 2026 10:39:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555184; bh=pdiqZWre+RM1rqXM4K0B6E2gyJw+bIr6JLSYsinrZY4=; h=From:To:Cc:Subject:Date:Reply-To; b=DTlWrAK+L5QtQ2fQoYXvnh6L3xt/jWS2W4YF1pmAD+MbcgPIgWVnCj84RnXScw5JT cUNbYF8OK8tTfuk30iaCvW3Vmpyk7RameLAIQSMwT5UTdvNPaSsB4iYmymYchAYhKN 0sfblWFcStNPfmDRk7miDK72DpLS7JyY+x6vFtQw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89882: media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow Date: Wed, 16 Sep 2026 11:30:12 +0100 Message-ID: <2026091631-CVE-2026-89882-5de9@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2393; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g8Q3QW72VdXnW/n4/n8gEQHcLvZ8aAFJHZoudsE4k5g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8nvUG2c+Luxc1DvpdZ/vuq07bEoL+iLeRCjfXXBZ8 6aB1E+RjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIWgfDgmadOQcPc69/GdUk V7gikKdI6fP8fwzzjJR/7r9SHS4olRwnsPTEVNnKS4uXAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: rkvdec: hevc: guard INTER_REF_PIC_SET_PRED index underflow st_ref_pic_set_prediction() computes the reference RPS index as st_rps_idx - (delta_idx_minus1 + 1) per HEVC spec equation 7-59. Both operands are u8, so when delta_idx_minus1 + 1 exceeds the current index the subtraction wraps and the subsequent array access at calculated_rps_st_sets[ref_rps_idx] reads far out of bounds. A userspace V4L2 client that can open the RKVDEC m2m decoder can submit an EXT_SPS_ST_RPS control with INTER_REF_PIC_SET_PRED set and delta_idx_minus1 crafted to trigger the underflow. Reject the entry early when the reference index would underflow. The Linux kernel CVE team has assigned CVE-2026-89882 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit c9a59dc2acc72789d5c778af080d1e65af84862c and fixed in 7.2.5 with commit 74938f83a8abbee8f502dfb5d94213b2497d1edf Issue introduced in 7.0 with commit c9a59dc2acc72789d5c778af080d1e65af84862c and fixed in 7.3-rc1 with commit 052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3 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-89882 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/rkvdec/rkvdec-hevc-common.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/74938f83a8abbee8f502dfb5d94213b2497d1edf https://git.kernel.org/stable/c/052c5ed5a1d96a6b24fd50ccda16fc6841ee7ca3