media: venus: hfi_parser: add check to avoid out of bound access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1a73374a04e555103e5369429a30999114001dda · < 53e376178ceacca3ef1795038b22fc9ef45ff1d3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: venus: hfi_parser: add check to avoid out of bound access
There is a possibility that init_codecs is invoked multiple times during manipulated payload from video firmware. In such case, if codecs_count can get incremented to value more than MAX_CODEC_NUM, there can be OOB access. Reset the count so that it always starts from beginning.
From the CVE record · Linux
The Linux kernel’s Venus HFI parser can access memory out of bounds if a manipulated payload from video firmware causes init_codecs to run repeatedly and codecs_count exceeds MAX_CODEC_NUM. The input does not specify how an attacker could supply that payload or whether authentication or user interaction is required.
Engineers running Linux kernels with the Venus HFI parser should check their versions; affected versions are not specified.