In the Linux kernel, the following vulnerability has been resolved:
ASoC: mxs: Fix error handling in mxssgtl5000probe
This function only calls ofnodeput() in the regular path. And it will cause refcount leak in error paths. For example, when codecnp is NULL, saifnp[0] and saif_np[1] are not NULL, it will cause leaks.
ofnodeput() will check if the node pointer is NULL, so we can call it directly to release the refcount of regular pointers.
{ "vanir_signatures": [ { "id": "CVE-2022-49242-104327e4", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1548.0, "function_hash": "45556618380982083607392452949262477885" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2923b48d99fe663cb93d8b481c93299fcd68656" }, { "id": "CVE-2022-49242-1f9e949b", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8d38056bcd220ea6f0802a5586d1a12ebcce849" }, { "id": "CVE-2022-49242-20223997", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67e12f1cb2f97468c12b59e21975eaa0f332e7d2" }, { "id": "CVE-2022-49242-3895cbae", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1204.0, "function_hash": "16598969571081365891514575605765531663" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f16ad2c0e22687f80e5981c67374023f51c204b9" }, { "id": "CVE-2022-49242-44ceeac6", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1524.0, "function_hash": "237411266964076421091301677421425358772" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8d38056bcd220ea6f0802a5586d1a12ebcce849" }, { "id": "CVE-2022-49242-584325ab", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@790d2628e3fcc819d8f5572eb5615113fb2e727a" }, { "id": "CVE-2022-49242-7381b9d3", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1548.0, "function_hash": "45556618380982083607392452949262477885" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86b6cf989437e694fd0a15782b5a513853a739e0" }, { "id": "CVE-2022-49242-73f1802a", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1504.0, "function_hash": "169504726065340458204099227217537075545" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ae0a4d8fec551ec581d620f0eb1fe31f755551c" }, { "id": "CVE-2022-49242-7becff68", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ae0a4d8fec551ec581d620f0eb1fe31f755551c" }, { "id": "CVE-2022-49242-7c4c0817", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86b6cf989437e694fd0a15782b5a513853a739e0" }, { "id": "CVE-2022-49242-7f8cdaa6", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1504.0, "function_hash": "169504726065340458204099227217537075545" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d880226c86f37624e2a5f3c6d92ac0ec3375f96" }, { "id": "CVE-2022-49242-9763ae5b", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44acdaf7acb60054d872bed18ce0e7db8ce900ce" }, { "id": "CVE-2022-49242-9e41792a", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2923b48d99fe663cb93d8b481c93299fcd68656" }, { "id": "CVE-2022-49242-c22ab526", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d880226c86f37624e2a5f3c6d92ac0ec3375f96" }, { "id": "CVE-2022-49242-c4f7dcb7", "signature_type": "Line", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c" }, "deprecated": false, "digest": { "line_hashes": [ "204558988148112665843847761096331061171", "298931723174962858358709719674502635474", "308077710946284413350117386047991548165", "235617648386230611679101518938214607724" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f16ad2c0e22687f80e5981c67374023f51c204b9" }, { "id": "CVE-2022-49242-d388f794", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1548.0, "function_hash": "45556618380982083607392452949262477885" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44acdaf7acb60054d872bed18ce0e7db8ce900ce" }, { "id": "CVE-2022-49242-d8742b5b", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1548.0, "function_hash": "45556618380982083607392452949262477885" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67e12f1cb2f97468c12b59e21975eaa0f332e7d2" }, { "id": "CVE-2022-49242-fc77d015", "signature_type": "Function", "target": { "file": "sound/soc/mxs/mxs-sgtl5000.c", "function": "mxs_sgtl5000_probe" }, "deprecated": false, "digest": { "length": 1177.0, "function_hash": "55611524869524052861821379272874336550" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@790d2628e3fcc819d8f5572eb5615113fb2e727a" } ] }