CVE-2022-50268 (GCVE-0-2022-50268)
Vulnerability from cvelistv5
Published
2025-09-15 14:21
Modified
2025-09-15 14:21
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: mmc: moxart: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, the memory that allocated in mmc_alloc_host() 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 mmc_free_host().
Impacted products
Vendor Product Version
Linux Linux Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Version: 1b66e94e6b9995323190f31c51d8e1a6f516627e
Create a notification for this product.
   Linux Linux Version: 3.16
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/mmc/host/moxart-mmc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a4c765f5d8e58138cff69f1510b2e8942ec37022",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "a94d466f31a5201995d39bc1208e2c09ab04f0bf",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "c7e9a2059fb943fc3c3fa12261518fd72a0fc136",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "b174f2b36c638fc7737df6c8aac1889a646be98f",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "7c3b301ca8b0cab392c71da8fcdfa499074f8e97",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "f0502fe86a2db2336c9498d2de3e97f22dcf85ae",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "8f8bb62c7c5c833758ef1563fe738afd579c3efe",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "40aa73c70e8a5706f9cbe01409a5e51cc0f1750e",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            },
            {
              "lessThan": "0ca18d09c744fb030ae9bc5836c3e357e0237dea",
              "status": "affected",
              "version": "1b66e94e6b9995323190f31c51d8e1a6f516627e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/mmc/host/moxart-mmc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.16"
            },
            {
              "lessThan": "3.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.337",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.337",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "3.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:21:04.555Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50268",
    "datePublished": "2025-09-15T14:21:04.555Z",
    "dateReserved": "2025-09-15T13:58:00.975Z",
    "dateUpdated": "2025-09-15T14:21:04.555Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50268\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:37.580\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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().\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0ca18d09c744fb030ae9bc5836c3e357e0237dea\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/40aa73c70e8a5706f9cbe01409a5e51cc0f1750e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7c3b301ca8b0cab392c71da8fcdfa499074f8e97\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8f8bb62c7c5c833758ef1563fe738afd579c3efe\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a4c765f5d8e58138cff69f1510b2e8942ec37022\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a94d466f31a5201995d39bc1208e2c09ab04f0bf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b174f2b36c638fc7737df6c8aac1889a646be98f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c7e9a2059fb943fc3c3fa12261518fd72a0fc136\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f0502fe86a2db2336c9498d2de3e97f22dcf85ae\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…