CVE-2022-49254

MEDIUM EPSS 15.7%
Published Feb 26, 20251y ago · Modified Jun 17, 20261w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Feb 26, 2025 1y ago
Last Modified Jun 17, 2026 1w ago

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.

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
15.7% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-476 NULL Pointer Dereference Memory Safety

Affected Products 3

VendorProductVersionRange
linuxlinux_kernel*≥5.12  –  <5.15.33
linuxlinux_kernel*≥5.16  –  <5.16.19
linuxlinux_kernel*≥5.17  –  <5.17.2

References 4

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

Remediation

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