CVE-2026-97581: media: verisilicon: hantro: bound G2 HEVC tile loop to the buffer capacity
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: verisilicon: hantro: bound G2 HEVC tile loop to the buffer capacity
prepare_tile_info_buffer() writes one entry per tile into the tile_sizes DMA buffer, sized for a grid equal to the PPS uAPI array capacity. Use the bounded v4l2_hevc_pps_num_tile_columns() / v4l2_hevc_pps_num_tile_rows() helpers so the loops stay inside the buffer.
The Linux kernel CVE team has assigned CVE-2026-97581 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c and fixed in 6.12.111 with commit 62ae24639d22909a5724627a0467e4bde9704020 Issue introduced in 5.14 with commit cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c and fixed in 6.18.53 with commit 4f654c9bc954569ff9b8ab860b29480c4cf6f57b Issue introduced in 5.14 with commit cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c and fixed in 7.2.7 with commit 05e8e4cdfe692f5cedba9aa9d7b8f2584cf926c8 Issue introduced in 5.14 with commit cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c and fixed in 7.3-rc3 with commit 06236b094c899c22c12ac5097935eb6719293de8
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-97581
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/verisilicon/hantro_g2_hevc_dec.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/62ae24639d22909a5724627a0467e4bde9704020 https://git.kernel.org/stable/c/4f654c9bc954569ff9b8ab860b29480c4cf6f57b https://git.kernel.org/stable/c/05e8e4cdfe692f5cedba9aa9d7b8f2584cf926c8 https://git.kernel.org/stable/c/06236b094c899c22c12ac5097935eb6719293de8