media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.306.3.46.4In the Linux kernel, the following vulnerability has been resolved:
media: mediatek: vcodec: Fix potential array out-of-bounds in decoder queue_setup
variable *nplanes is provided by user via system call argument. The possible value of q_data->fmt->num_planes is 1-3, while the value of *nplanes can be 1-8. The array access by index i can cause array out-of-bounds.
Fix this bug by checking *nplanes against the array size.
From the CVE record · Linux
The Linux kernel’s MediaTek video decoder queue setup can access an array out of bounds when a user-supplied plane count exceeds the array size. A local caller can supply that count through a system call argument; the input does not specify any authentication or user-interaction requirement.
Engineers running Linux kernels with the MediaTek video decoder should check whether their kernel includes the fix; affected versions are not specified.