CVE-2022-49253: media: usb: go7007: s2250-board: fix leak in probe()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: usb: go7007: s2250-board: fix leak in probe()
Call i2c_unregister_device(audio) on this error path.
The Linux kernel CVE team has assigned CVE-2022-49253 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 4.9.311 with commit bbdd0e15738336e6b1208304ae98525117877bbd Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 4.14.276 with commit a97130cd5b0c00eec169b10a16d922b9ea67324a Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 4.19.238 with commit b7dd177225355da55f8d80d8e568928e0eec3608 Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 5.4.189 with commit 14cd5a8e61c654828a1f1056d56f0b0a524d2c69 Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 5.10.110 with commit 44973633b0064c46083833b55dd0a45e6235f8ca Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 5.15.33 with commit 895364fa97e60749855f789bc4568883fc7a8b39 Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 5.16.19 with commit b5470f3efa530b10296257bb578ce4b1769e9a04 Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 5.17.2 with commit 948ad5e5624487079c24cb5c81c74ddd02832440 Issue introduced in 3.10 with commit d3b2ccd9e307eae80b4b4eeb0ede46cb02212df2 and fixed in 5.18 with commit 67e4550ecd6164bfbdff54c169e5bbf9ccfaf14d
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-49253
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/usb/go7007/s2250-board.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/bbdd0e15738336e6b1208304ae98525117877bbd https://git.kernel.org/stable/c/a97130cd5b0c00eec169b10a16d922b9ea67324a https://git.kernel.org/stable/c/b7dd177225355da55f8d80d8e568928e0eec3608 https://git.kernel.org/stable/c/14cd5a8e61c654828a1f1056d56f0b0a524d2c69 https://git.kernel.org/stable/c/44973633b0064c46083833b55dd0a45e6235f8ca https://git.kernel.org/stable/c/895364fa97e60749855f789bc4568883fc7a8b39 https://git.kernel.org/stable/c/b5470f3efa530b10296257bb578ce4b1769e9a04 https://git.kernel.org/stable/c/948ad5e5624487079c24cb5c81c74ddd02832440 https://git.kernel.org/stable/c/67e4550ecd6164bfbdff54c169e5bbf9ccfaf14d