media: verisilicon: hantro: bound G2 HEVC tile loop to the buffer capacity
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c · < 06236b094c899c22c12ac5097935eb6719293de8| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's Hantro G2 HEVC code can write more tile entries than the tile_sizes DMA buffer can hold when preparing tile information. An attacker could potentially trigger this out-of-bounds write; the input does not specify whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the Hantro G2 HEVC driver should check their versions; affected versions are not specified.