{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50268",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-09-15T13:58:00.975Z",
        "datePublished": "2025-09-15T14:21:04.555Z",
        "dateUpdated": "2026-05-11T19:16:02.317Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:16:02.317Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: moxart: fix return value check of mmc_add_host()\n\nmmc_add_host() may return error, if we ignore its return value, the memory\nthat allocated in mmc_alloc_host() will be leaked and it will lead a kernel\ncrash because of deleting not added device in the remove path.\n\nSo fix this by checking the return value and goto error path which will call\nmmc_free_host()."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mmc/host/moxart-mmc.c"
                    ],
                    "versions": [
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "a4c765f5d8e58138cff69f1510b2e8942ec37022",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "a94d466f31a5201995d39bc1208e2c09ab04f0bf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "c7e9a2059fb943fc3c3fa12261518fd72a0fc136",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "b174f2b36c638fc7737df6c8aac1889a646be98f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "7c3b301ca8b0cab392c71da8fcdfa499074f8e97",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "f0502fe86a2db2336c9498d2de3e97f22dcf85ae",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "8f8bb62c7c5c833758ef1563fe738afd579c3efe",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "40aa73c70e8a5706f9cbe01409a5e51cc0f1750e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
                            "lessThan": "0ca18d09c744fb030ae9bc5836c3e357e0237dea",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mmc/host/moxart-mmc.c"
                    ],
                    "versions": [
                        {
                            "version": "3.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.337",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.303",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.270",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.229",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.163",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.86",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.16",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.2",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "4.9.337"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "4.14.303"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "4.19.270"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "5.4.229"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "5.10.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "5.15.86"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.0.16"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.1.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/a4c765f5d8e58138cff69f1510b2e8942ec37022"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a94d466f31a5201995d39bc1208e2c09ab04f0bf"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c7e9a2059fb943fc3c3fa12261518fd72a0fc136"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b174f2b36c638fc7737df6c8aac1889a646be98f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7c3b301ca8b0cab392c71da8fcdfa499074f8e97"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f0502fe86a2db2336c9498d2de3e97f22dcf85ae"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8f8bb62c7c5c833758ef1563fe738afd579c3efe"
                },
                {
                    "url": "https://git.kernel.org/stable/c/40aa73c70e8a5706f9cbe01409a5e51cc0f1750e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0ca18d09c744fb030ae9bc5836c3e357e0237dea"
                }
            ],
            "title": "mmc: moxart: fix return value check of mmc_add_host()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}