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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49242.json"
}[
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-104327e4",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1548.0,
"function_hash": "45556618380982083607392452949262477885"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2923b48d99fe663cb93d8b481c93299fcd68656"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-1f9e949b",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8d38056bcd220ea6f0802a5586d1a12ebcce849"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-20223997",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67e12f1cb2f97468c12b59e21975eaa0f332e7d2"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-3895cbae",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1204.0,
"function_hash": "16598969571081365891514575605765531663"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f16ad2c0e22687f80e5981c67374023f51c204b9"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-44ceeac6",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1524.0,
"function_hash": "237411266964076421091301677421425358772"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8d38056bcd220ea6f0802a5586d1a12ebcce849"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-584325ab",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@790d2628e3fcc819d8f5572eb5615113fb2e727a"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-7381b9d3",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1548.0,
"function_hash": "45556618380982083607392452949262477885"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86b6cf989437e694fd0a15782b5a513853a739e0"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-73f1802a",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1504.0,
"function_hash": "169504726065340458204099227217537075545"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ae0a4d8fec551ec581d620f0eb1fe31f755551c"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-7becff68",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ae0a4d8fec551ec581d620f0eb1fe31f755551c"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-7c4c0817",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86b6cf989437e694fd0a15782b5a513853a739e0"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-7f8cdaa6",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1504.0,
"function_hash": "169504726065340458204099227217537075545"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d880226c86f37624e2a5f3c6d92ac0ec3375f96"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-9763ae5b",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44acdaf7acb60054d872bed18ce0e7db8ce900ce"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-9e41792a",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2923b48d99fe663cb93d8b481c93299fcd68656"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-c22ab526",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8d880226c86f37624e2a5f3c6d92ac0ec3375f96"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49242-c4f7dcb7",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"204558988148112665843847761096331061171",
"298931723174962858358709719674502635474",
"308077710946284413350117386047991548165",
"235617648386230611679101518938214607724"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f16ad2c0e22687f80e5981c67374023f51c204b9"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-d388f794",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1548.0,
"function_hash": "45556618380982083607392452949262477885"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44acdaf7acb60054d872bed18ce0e7db8ce900ce"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-d8742b5b",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1548.0,
"function_hash": "45556618380982083607392452949262477885"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67e12f1cb2f97468c12b59e21975eaa0f332e7d2"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49242-fc77d015",
"target": {
"file": "sound/soc/mxs/mxs-sgtl5000.c",
"function": "mxs_sgtl5000_probe"
},
"digest": {
"length": 1177.0,
"function_hash": "55611524869524052861821379272874336550"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@790d2628e3fcc819d8f5572eb5615113fb2e727a"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49242.json"