blob: bf0291b79b3115ea2dfc5443a09024d314bff75e [file] [log] [blame]
From bippy-1.2.0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@kernel.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2022-49887: media: meson: vdec: fix possible refcount leak in vdec_probe()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: meson: vdec: fix possible refcount leak in vdec_probe()
v4l2_device_unregister need to be called to put the refcount got by
v4l2_device_register when vdec_probe fails or vdec_remove is called.
The Linux kernel CVE team has assigned CVE-2022-49887 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit 3e7f51bd96077acad6acd7b45668f65b44233c4e and fixed in 5.4.224 with commit 70119756311a0be3b95bec2e1ba714673e90feba
Issue introduced in 5.3 with commit 3e7f51bd96077acad6acd7b45668f65b44233c4e and fixed in 5.10.154 with commit be6e22f54623d8a856a4f167b25be73c2ff1ff80
Issue introduced in 5.3 with commit 3e7f51bd96077acad6acd7b45668f65b44233c4e and fixed in 5.15.78 with commit f96ad391d054bd5c36994f98afd6a12cbb5600bf
Issue introduced in 5.3 with commit 3e7f51bd96077acad6acd7b45668f65b44233c4e and fixed in 6.0.8 with commit 0457e7b12ece1a7e41fa0ae8b7e47c0a72a83bef
Issue introduced in 5.3 with commit 3e7f51bd96077acad6acd7b45668f65b44233c4e and fixed in 6.1 with commit 7718999356234d9cc6a11b4641bb773928f1390f
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-49887
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/staging/media/meson/vdec/vdec.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/70119756311a0be3b95bec2e1ba714673e90feba
https://git.kernel.org/stable/c/be6e22f54623d8a856a4f167b25be73c2ff1ff80
https://git.kernel.org/stable/c/f96ad391d054bd5c36994f98afd6a12cbb5600bf
https://git.kernel.org/stable/c/0457e7b12ece1a7e41fa0ae8b7e47c0a72a83bef
https://git.kernel.org/stable/c/7718999356234d9cc6a11b4641bb773928f1390f