CVE-2023-52888: media: mediatek: vcodec: Only free buffer VA that is not NULL

Description

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.

Classification

CVE ID: CVE-2023-52888

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 17.83% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/5c217253c76c94f76d1df31d0bbdcb88dc07be91
https://git.kernel.org/stable/c/303d01082edaf817ee2df53a40dca9da637a2c04
https://git.kernel.org/stable/c/eb005c801ec70ff4307727bd3bd6e8280169ef32

Timeline