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 3BF7A41CB31 for ; Fri, 25 Sep 2026 10:25:18 +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=1790331919; cv=none; b=mHEy3yKLmcwgl4333krfV5TLuIFYOYcJmrp3FJeR1zWhIsc6+mKKVrLAYyZl3wQloI4+G4WJbs/m1a0CXysfZHolWYMhrbwbgpIoXJgxzGZMWpzoSB4v57c4d/RJx9fD3vltCzVlF1c8k0C65CeLWCad2jkYlR3C0UtF5EmRs7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331919; c=relaxed/simple; bh=p9gX06qUWCLY9K2cLyUucJ4qLrnCw/bgfZFzoXZcy3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TGq5awPzkEt+rKyf1fOttXvvRkgeL6/2G3RNsju2douptkQ5e9puzqGphIR8+HeEy2pvuxD0z5lvA5PiKciksFvBlY3nGcEUCVTdqlXjri385ho5b583tfHx5IPGKNbIOT4TGbekBQN5RJNq/1esTPQ1upZRQhSRsXStACH6Pb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D6xprcw7; 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="D6xprcw7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92FF81F000FF; Fri, 25 Sep 2026 10:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331918; bh=c1T50TIpBsejwyvqt5SxkRag5Fkw8LhC7NuOrn3/1ME=; h=From:To:Cc:Subject:Date:Reply-To; b=D6xprcw7U6cXbpw0psGddYH2W+a8S+XZq24QB9XPgP6e3nvE36XZkO/e6OMLnF9H4 KltJqHG4xqFS5/K9CJ6qZI5Uv+edcb8kmxPhdiSpRWJ8qDP3Gd+gpEVFIX0mmSnXka yejBEZ/VslBYCs5uxbYfiDnEGJwEYUSAzk4Y6SnQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97580: media: rkvdec: bound HEVC tile loops and PPS id to the array capacity Date: Fri, 25 Sep 2026 12:22:40 +0200 Message-ID: <2026092556-CVE-2026-97580-1c32@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=2510; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eh/mC4Qw3QRHTtVvI0+9JMo8cWSDqD1huNwAZ/Xv4T8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvF2WSyQm/xbbcqbhvlpvnPKqo8yromz+2Okc63u0r OvL/M2PO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiU6cwzFOw4up+3pO//FV+ 2KU/ArwB389JaTMsOLlzScX07afDMr67Xv3an/Wl5dwOGwA= 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: bound HEVC tile loops and PPS id to the array capacity compute_tiles_uniform() and compute_tiles_non_uniform() loop over num_tile_columns_minus1 + 1 / num_tile_rows_minus1 + 1 entries, and assemble_hw_pps() writes one COLUMN_WIDTH / ROW_HEIGHT register per tile and indexes priv_tbl->param_set[] by pic_parameter_set_id, all taken from the untrusted PPS. Use the bounded v4l2_hevc_pps_num_tile_columns() / v4l2_hevc_pps_num_tile_rows() helpers for the tile loops, and bail out of assemble_hw_pps() before indexing priv_tbl->param_set[] with an out-of-range pic_parameter_set_id, so the writes stay within the hardware tables. The Linux kernel CVE team has assigned CVE-2026-97580 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 3595375c2301653d5440d54b396df03499686c20 and fixed in 7.2.7 with commit 03beb248d8a7bab30559a60d4df81f167e63b9e3 Issue introduced in 6.19 with commit 3595375c2301653d5440d54b396df03499686c20 and fixed in 7.3-rc3 with commit 81ad46bb33d8fd279aaa33af5296c648814c964b 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-97580 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 drivers/media/platform/rockchip/rkvdec/rkvdec-hevc.c drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu381-hevc.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/03beb248d8a7bab30559a60d4df81f167e63b9e3 https://git.kernel.org/stable/c/81ad46bb33d8fd279aaa33af5296c648814c964b