Bug 2347984 (CVE-2022-49254) - CVE-2022-49254 kernel: media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()
Summary: CVE-2022-49254 kernel: media: ti-vpe: cal: Fix a NULL pointer dereference in ...
Keywords:
Status: NEW
Alias: CVE-2022-49254
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:13 UTC by OSIDB Bzimport
Modified: 2025-02-26 21:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:13:35 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 21:07:39 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022627-CVE-2022-49254-ea38@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.