CVE-2022-49254

MEDIUM

Linux Kernel 5.12-5.15.32, 5.16.0-5.16.18, 5.17.0-5.17.1 - NULL Pointer Dereference in cal_ctx_v4l2_init_formats()

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0025
EPSS Percentile 15.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (14)
linux/Kernel 5.12.0 - 5.15.33linux
linux/Kernel 5.16.0 - 5.16.19linux
linux/Kernel 5.17.0 - 5.17.2linux
Linux/Linux < 5.12
Linux/Linux 5.12
Linux/Linux 5.15.33 - 5.15.*
Linux/Linux 5.16.19 - 5.16.*
Linux/Linux 5.17.2 - 5.17.*
Linux/Linux 5.18
Linux/Linux 7168155002cf7aadbfaa14a28f037c880a214764 - 1381f1a629a090c251965edb56f849ad648414a4
... and 4 more
Published Feb 26, 2025
Tracked Since Feb 18, 2026