media: v4l2-ctrls: validate HEVC tile counts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 256fa3920874b0f1f4cb79ad6766493a22187153 · < ba1023d3a6d5d244d59f20c4ba6af4879ae08a9f| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel does not bound HEVC tile counts in a V4L2 PPS control when tiling is enabled. A caller able to submit a control with counts exceeding the uAPI array capacity can cause stateless HEVC decoders to read beyond the tile-width or tile-height arrays.
Engineers running Linux kernels with stateless HEVC decoder support should check their kernel version against the vendor advisory; affected versions were not provided.