CVE-2023-54078: media: max9286: Free control handler
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: max9286: Free control handler
The control handler is leaked in some probe-time error paths, as well as in the remove path. Fix it.
The Linux kernel CVE team has assigned CVE-2023-54078 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.9 with commit 66d8c9d2422da21ed41f75c03ba0685987b65fe0 and fixed in 5.10.180 with commit 9a3a907cf69f804eb41ece5c079720d1a6a15aa1 Issue introduced in 5.9 with commit 66d8c9d2422da21ed41f75c03ba0685987b65fe0 and fixed in 5.15.111 with commit 1ad4b8c4552b4096dfc86531462dc1899f96af94 Issue introduced in 5.9 with commit 66d8c9d2422da21ed41f75c03ba0685987b65fe0 and fixed in 6.1.28 with commit 1e9fc6c473210138eff3425a6136f0a9bf4eb0ae Issue introduced in 5.9 with commit 66d8c9d2422da21ed41f75c03ba0685987b65fe0 and fixed in 6.2.15 with commit 0f25f99dacc72bce7d4128f7a254b23f1a343cc7 Issue introduced in 5.9 with commit 66d8c9d2422da21ed41f75c03ba0685987b65fe0 and fixed in 6.3.2 with commit 19f36204dbe28bf4ec0149e87e9996a56af4e654 Issue introduced in 5.9 with commit 66d8c9d2422da21ed41f75c03ba0685987b65fe0 and fixed in 6.4 with commit bfce6a12e5ba1edde95126aa06778027f16115d4
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-2023-54078
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/i2c/max9286.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/9a3a907cf69f804eb41ece5c079720d1a6a15aa1 https://git.kernel.org/stable/c/1ad4b8c4552b4096dfc86531462dc1899f96af94 https://git.kernel.org/stable/c/1e9fc6c473210138eff3425a6136f0a9bf4eb0ae https://git.kernel.org/stable/c/0f25f99dacc72bce7d4128f7a254b23f1a343cc7 https://git.kernel.org/stable/c/19f36204dbe28bf4ec0149e87e9996a56af4e654 https://git.kernel.org/stable/c/bfce6a12e5ba1edde95126aa06778027f16115d4