---
id: CVE-2023-52888
title: 'media: mediatek: vcodec: Only free buffer VA that is not NULL'
summary: |-
  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 …
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc <
    56d27b9fca840c68f67706e3cc5f2000c17bce39
  - >-
    Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc <
    5c217253c76c94f76d1df31d0bbdcb88dc07be91
  - >-
    Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc <
    303d01082edaf817ee2df53a40dca9da637a2c04
  - >-
    Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc <
    eb005c801ec70ff4307727bd3bd6e8280169ef32
  - Linux 4.10
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-09-10T16:18:12.133144Z'
published: '2024-07-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T12:17:25.114Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-52888'
references:
  - url: 'https://git.kernel.org/stable/c/56d27b9fca840c68f67706e3cc5f2000c17bce39'
  - url: 'https://git.kernel.org/stable/c/5c217253c76c94f76d1df31d0bbdcb88dc07be91'
  - url: 'https://git.kernel.org/stable/c/303d01082edaf817ee2df53a40dca9da637a2c04'
  - url: 'https://git.kernel.org/stable/c/eb005c801ec70ff4307727bd3bd6e8280169ef32'
tags:
  - cve.org
epss: 0.00239
epssPercentile: 0.15021
ingestedAt: '2026-11-03T11:43:15.784Z'
---

## Overview

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.

## Affected

- `Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc < 56d27b9fca840c68f67706e3cc5f2000c17bce39`
- `Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc < 5c217253c76c94f76d1df31d0bbdcb88dc07be91`
- `Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc < 303d01082edaf817ee2df53a40dca9da637a2c04`
- `Linux >= 590577a4e5257ac3ed72999a94666ad6ba8f24bc < eb005c801ec70ff4307727bd3bd6e8280169ef32`
- `Linux 4.10`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
