MediaTek vcodec Driver Vulnerability in Linux Package: Buffer Free Check Bypass

linux Updated 02 Oct 2025

Summary

30/07/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-52888: 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... Affects linux versions < 6.9.9-1. Fixed in 6.9.9-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware and software interaction. It supports a wide range of functionalities, including device drivers, file systems, and network protocols. The MediaTek vcodec driver is responsible for handling video encoding and decoding tasks on devices utilizing MediaTek hardware. This driver is critical for ensuring smooth video playback and recording, making it a vital part of multimedia applications. However, it has been found to have a vulnerability that could lead to unexpected behavior when freeing memory buffers.

Vulnerability Detail

In the MediaTek vcodec driver, a vulnerability was identified where the function mtk_vcodec_mem_free() did not consistently check if the buffer to free was NULL before attempting to free it. This oversight could lead to warnings and potentially destabilize the system if the function is called with a NULL pointer. The lack of proper checks was likely an unintentional omission, and addressing this issue is crucial for maintaining system stability and security.

How To Fix

Minimum fixed version

6.9.9-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, users can manually check for NULL pointers before calling the mtk_vcodec_mem_free() function in their code. This can prevent the function from being called with invalid arguments, thereby avoiding the warnings. However, it is recommended to apply the patch as the best solution.

Conclusion

The vulnerability in the MediaTek vcodec driver of the Linux kernel highlights the importance of proper memory management checks. Users are encouraged to update their systems to the latest patched version to ensure stability and security. Utilizing tools like Vulert can further enhance vulnerability management by providing real-time alerts.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability involves a lack of checks in the MediaTek vcodec driver that could lead to warnings when freeing memory buffers.

You can check if your application is affected by using the Vulert playground at Vulert Scanner without any signup.

Failure to fix this vulnerability may lead to system instability and unexpected behavior during video processing tasks.

Yes, the patched version of the Linux package is 6.9.9-1 for both Debian 13 and Debian 14.

Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json, providing real-time insights without requiring code access.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.9.9-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback