media: mediatek: vcodec: Only free buffer VA that is not NULL
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: mediatek: vcodec: Only free buffer VA that is not NULL
In the MediaTek vcodec driver, while mtk_vcodec_mem_free() is mostly called only when the buffer to free exists, there are some instances that didn't do the check and triggered warnings in practice.
We believe those checks were forgotten unintentionally. Add the checks back to fix the warnings.
From the CVE record · Linux
The Linux kernel’s MediaTek vcodec driver can attempt to free a buffer when its virtual address is NULL, triggering warnings. The input does not describe an attacker action or specify access, authentication, or user-interaction conditions.
Engineers running Linux kernels with the MediaTek vcodec driver should check their systems; affected versions are not specified.