CVE-2026-97576: media: v4l2-ctrls: validate HEVC tile counts
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: v4l2-ctrls: validate HEVC tile counts
The stateless HEVC decoders read num_tile_columns_minus1 + 1 entries from column_width_minus1[] and num_tile_rows_minus1 + 1 from row_height_minus1[] and use them as tile-loop bounds, but std_validate_compound() does not bound these u8 counts. Reject a V4L2_CTRL_TYPE_HEVC_PPS with tiling enabled whose tile counts exceed the uAPI array capacity, mirroring the existing compound-control range checks.
The Linux kernel CVE team has assigned CVE-2026-97576 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit 256fa3920874b0f1f4cb79ad6766493a22187153 and fixed in 6.12.111 with commit 400cd78a63cc647412cf069c9851bdea2818340c Issue introduced in 5.5 with commit 256fa3920874b0f1f4cb79ad6766493a22187153 and fixed in 6.18.53 with commit c7b1ef6dc57f4e57fe27cfdd3bf82033ed91ca34 Issue introduced in 5.5 with commit 256fa3920874b0f1f4cb79ad6766493a22187153 and fixed in 7.2.7 with commit ba1023d3a6d5d244d59f20c4ba6af4879ae08a9f Issue introduced in 5.5 with commit 256fa3920874b0f1f4cb79ad6766493a22187153 and fixed in 7.3-rc3 with commit dc694a9929f7cb9c88ef91e45eb982b7bbe5a477
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-97576
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/400cd78a63cc647412cf069c9851bdea2818340c https://git.kernel.org/stable/c/c7b1ef6dc57f4e57fe27cfdd3bf82033ed91ca34 https://git.kernel.org/stable/c/ba1023d3a6d5d244d59f20c4ba6af4879ae08a9f https://git.kernel.org/stable/c/dc694a9929f7cb9c88ef91e45eb982b7bbe5a477