In the Linux kernel, the following vulnerability has been resolved:
mmc: moxart: fix return value check of mmcaddhost()
mmcaddhost() may return error, if we ignore its return value, the memory that allocated in mmcallochost() will be leaked and it will lead a kernel crash because of deleting not added device in the remove path.
So fix this by checking the return value and goto error path which will call mmcfreehost().
{ "vanir_signatures": [ { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a94d466f31a5201995d39bc1208e2c09ab04f0bf", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-020dfd63" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b174f2b36c638fc7737df6c8aac1889a646be98f", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-09b85253" }, { "digest": { "length": 3277.0, "function_hash": "340252397009770965349021767753247240748" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c3b301ca8b0cab392c71da8fcdfa499074f8e97", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-14802140" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c3b301ca8b0cab392c71da8fcdfa499074f8e97", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-1e834253" }, { "digest": { "length": 3277.0, "function_hash": "340252397009770965349021767753247240748" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f8bb62c7c5c833758ef1563fe738afd579c3efe", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-364cbe2c" }, { "digest": { "length": 3277.0, "function_hash": "340252397009770965349021767753247240748" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ca18d09c744fb030ae9bc5836c3e357e0237dea", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-37933f36" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@40aa73c70e8a5706f9cbe01409a5e51cc0f1750e", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-3ba23a6b" }, { "digest": { "length": 3277.0, "function_hash": "340252397009770965349021767753247240748" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0502fe86a2db2336c9498d2de3e97f22dcf85ae", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-42bf913b" }, { "digest": { "length": 2879.0, "function_hash": "286400182135168937902830081676565965747" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c765f5d8e58138cff69f1510b2e8942ec37022", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-67f464c0" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f8bb62c7c5c833758ef1563fe738afd579c3efe", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-8cd59b9c" }, { "digest": { "length": 2879.0, "function_hash": "286400182135168937902830081676565965747" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b174f2b36c638fc7737df6c8aac1889a646be98f", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-a927d722" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c765f5d8e58138cff69f1510b2e8942ec37022", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-b70240a0" }, { "digest": { "length": 2879.0, "function_hash": "286400182135168937902830081676565965747" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7e9a2059fb943fc3c3fa12261518fd72a0fc136", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-c14b69a0" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7e9a2059fb943fc3c3fa12261518fd72a0fc136", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-cfea4c51" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0ca18d09c744fb030ae9bc5836c3e357e0237dea", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-e94ef784" }, { "digest": { "length": 3277.0, "function_hash": "340252397009770965349021767753247240748" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@40aa73c70e8a5706f9cbe01409a5e51cc0f1750e", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-f29a2b05" }, { "digest": { "length": 2879.0, "function_hash": "286400182135168937902830081676565965747" }, "target": { "function": "moxart_probe", "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a94d466f31a5201995d39bc1208e2c09ab04f0bf", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-f35e489a" }, { "digest": { "line_hashes": [ "119519749432981164920359023391822545053", "306210832606407133516069533507123474830", "215955704779535931305135376836143490986", "12213631591850175245793444445052614738" ], "threshold": 0.9 }, "target": { "file": "drivers/mmc/host/moxart-mmc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0502fe86a2db2336c9498d2de3e97f22dcf85ae", "deprecated": false, "signature_version": "v1", "id": "CVE-2022-50268-fb86108c" } ] }