NULL pointer dereference in cal_ctx_v4l2_init_formats() in Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001882: media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats(). Affects Kernel versions >= 7168155002cf7aadbfaa14a28f037c880a214764, < aa613ac270292e102503e9767882e39200efe608. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a fundamental component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities and services to enable the proper functioning of the system. The vulnerability in question affects the media: ti-vpe: cal component of the Kernel. This component is responsible for managing the Camera Access Layer (CAL) for Texas Instruments Video Processing Engine (TI-VPE). The CAL module handles the initialization and configuration of video formats for the TI-VPE hardware. However, a NULL pointer dereference vulnerability exists in the cal_ctx_v4l2_init_formats() function, which can lead to unexpected behavior or system crashes.

Vulnerability Detail

The NULL pointer dereference vulnerability in cal_ctx_v4l2_init_formats() arises from a failure to properly handle a NULL pointer. When the function is called, it does not check if a pointer is NULL before attempting to dereference it. As a result, if a NULL pointer is passed as an argument, the function will crash, leading to a denial of service (DoS) condition. An attacker could potentially exploit this vulnerability by providing malicious input to trigger the NULL pointer dereference, causing the system to crash or become unresponsive. The impact of this vulnerability can range from a temporary disruption in service to a complete system halt, depending on the context in which the vulnerable code is executed.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can avoid the vulnerability by refraining from executing code that triggers the cal_ctx_v4l2_init_formats() function with a NULL pointer argument. This can be achieved by ensuring that all input values passed to the function are valid and non-NULL. Here is an example of how to validate the input before calling the function:

if (input_pointer != NULL) {
  cal_ctx_v4l2_init_formats(input_pointer);
}

Conclusion

In conclusion, the NULL pointer dereference vulnerability in cal_ctx_v4l2_init_formats() in the Kernel's media: ti-vpe: cal component can lead to system crashes or unresponsiveness. It is crucial to update the Linux Kernel to version v5.15.33 or later to mitigate this vulnerability. Additionally, validating input values before calling the vulnerable function can serve as a temporary workaround. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can range from a temporary disruption in service to a complete system halt, depending on the context in which the vulnerable code is executed.

An attacker could potentially exploit this vulnerability by providing malicious input to trigger the NULL pointer dereference, causing the system to crash or become unresponsive.

Yes, the vulnerability has been fixed in Linux Kernel version v5.15.33. It is recommended to update to this version or later to address the issue.

Yes, users can avoid the vulnerability by ensuring that all input values passed to the cal_ctx_v4l2_init_formats() function are valid and non-NULL.

For more details about this vulnerability, you can refer to the source link provided in the database_specific section of this report.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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