media: verisilicon: rockchip: guard VPU981 AV1 divisor and tile buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: verisilicon: rockchip: guard VPU981 AV1 divisor and tile buffer
rockchip_vpu981_av1_dec_set_tile_info() divides context_update_tile_id by tile_info->tile_cols and writes one descriptor per tile into the tile_info DMA buffer, which holds AV1_MAX_TILES entries; tile_cols and tile_rows come from the bitstream. Guard the division against a zero tile_cols by initialising the context-update values to zero and computing them only when tile_cols is non-zero, and stop the descriptor writes once the tile_info buffer is full. The tile geometry written to the hardware registers is left unmodified; the per-dimension and total tile bounds are enforced by the control validation.
From the CVE record · Linux
The Linux kernel’s Rockchip VPU981 AV1 decoder divides by a bitstream-supplied tile column count and writes tile descriptors to a fixed-size DMA buffer. A bitstream with zero tile columns can trigger a divide-by-zero, while excess descriptors can overflow the buffer. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running the Linux kernel with the Rockchip VPU981 AV1 decoder should check their kernel; affected versions are not specified.