[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022627-CVE-2022-49254-ea38@gregkh>
Date: Wed, 26 Feb 2025 02:57:39 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49254: media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()
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.
The Linux kernel CVE team has assigned CVE-2022-49254 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.12 with commit 7168155002cf7aadbfaa14a28f037c880a214764 and fixed in 5.15.33 with commit aa613ac270292e102503e9767882e39200efe608
Issue introduced in 5.12 with commit 7168155002cf7aadbfaa14a28f037c880a214764 and fixed in 5.16.19 with commit 91e2805579ab0783eed53acc2bf9fb553e939004
Issue introduced in 5.12 with commit 7168155002cf7aadbfaa14a28f037c880a214764 and fixed in 5.17.2 with commit 1381f1a629a090c251965edb56f849ad648414a4
Issue introduced in 5.12 with commit 7168155002cf7aadbfaa14a28f037c880a214764 and fixed in 5.18 with commit abd77889851d2ead0d0c9c4d29f1808801477b00
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-49254
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/platform/ti-vpe/cal-video.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
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
Powered by blists - more mailing lists