Description
In 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.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 48e4e06e2c5fe1fda283d499f91492eda2248bb9
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before b8e19bf3b4aebd855be01b64674187dcf6d1db51
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 8fbcf730cb89c3647f3365226fe7014118fa93c7
6.1.30 (semver)
6.3.4 (semver)
6.4 (original_commit_for_fix)
References
git.kernel.org/...c/48e4e06e2c5fe1fda283d499f91492eda2248bb9
git.kernel.org/...c/b8e19bf3b4aebd855be01b64674187dcf6d1db51
git.kernel.org/...c/8fbcf730cb89c3647f3365226fe7014118fa93c7