CVE-2022-50347 (GCVE-0-2022-50347)
Vulnerability from cvelistv5
Published
2025-09-16 16:11
Modified
2025-09-16 16:11
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
mmc: rtsx_usb_sdmmc: 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 calling mmc_free_host() in the
error path, besides, led_classdev_unregister() and pm_runtime_disable() also
need be called.
References
Impacted products
Vendor | Product | Version | |||||||
---|---|---|---|---|---|---|---|---|---|
▼ | Linux | Linux |
Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d Version: c7f6558d84afe60016b8103c0737df6e376a1c2d |
||||||
|
{ "containers": { "cna": { "affected": [ { "defaultStatus": "unaffected", "product": "Linux", "programFiles": [ "drivers/mmc/host/rtsx_usb_sdmmc.c" ], "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "vendor": "Linux", "versions": [ { "lessThan": "d7ad7278be401b09c9f9a9f522cf4c449c7fd489", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "e598c9683fe1cf97c2b11b800cc3cee072108220", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "89303ddbb502c3bc8edbf864f9f85500c8fe07e9", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "937112e991ed25d1727d878734adcbef3b900274", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "7fa922c7a3dd623fd59f1af50e8896fd9ca7f654", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "df683201c7ffbd21a806a7cad657b661c5ebfb6f", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "1491667d5450778a265eddddd294219acfd648cb", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "a522e26a20a43dcfbef9ee9f71ed803290e852b0", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" }, { "lessThan": "fc38a5a10e9e5a75eb9189854abeb8405b214cc9", "status": "affected", "version": "c7f6558d84afe60016b8103c0737df6e376a1c2d", "versionType": "git" } ] }, { "defaultStatus": "affected", "product": "Linux", "programFiles": [ "drivers/mmc/host/rtsx_usb_sdmmc.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: rtsx_usb_sdmmc: 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 calling mmc_free_host() in the\nerror path, besides, led_classdev_unregister() and pm_runtime_disable() also\nneed be called." } ], "providerMetadata": { "dateUpdated": "2025-09-16T16:11:39.891Z", "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux" }, "references": [ { "url": "https://git.kernel.org/stable/c/d7ad7278be401b09c9f9a9f522cf4c449c7fd489" }, { "url": "https://git.kernel.org/stable/c/e598c9683fe1cf97c2b11b800cc3cee072108220" }, { "url": "https://git.kernel.org/stable/c/89303ddbb502c3bc8edbf864f9f85500c8fe07e9" }, { "url": "https://git.kernel.org/stable/c/937112e991ed25d1727d878734adcbef3b900274" }, { "url": "https://git.kernel.org/stable/c/7fa922c7a3dd623fd59f1af50e8896fd9ca7f654" }, { "url": "https://git.kernel.org/stable/c/df683201c7ffbd21a806a7cad657b661c5ebfb6f" }, { "url": "https://git.kernel.org/stable/c/1491667d5450778a265eddddd294219acfd648cb" }, { "url": "https://git.kernel.org/stable/c/a522e26a20a43dcfbef9ee9f71ed803290e852b0" }, { "url": "https://git.kernel.org/stable/c/fc38a5a10e9e5a75eb9189854abeb8405b214cc9" } ], "title": "mmc: rtsx_usb_sdmmc: 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-50347", "datePublished": "2025-09-16T16:11:39.891Z", "dateReserved": "2025-09-16T16:03:27.882Z", "dateUpdated": "2025-09-16T16:11:39.891Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2022-50347\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-16T17:15:34.470\",\"lastModified\":\"2025-09-17T14:18:55.093\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmmc: rtsx_usb_sdmmc: 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 calling mmc_free_host() in the\\nerror path, besides, led_classdev_unregister() and pm_runtime_disable() also\\nneed be called.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1491667d5450778a265eddddd294219acfd648cb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7fa922c7a3dd623fd59f1af50e8896fd9ca7f654\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/89303ddbb502c3bc8edbf864f9f85500c8fe07e9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/937112e991ed25d1727d878734adcbef3b900274\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a522e26a20a43dcfbef9ee9f71ed803290e852b0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d7ad7278be401b09c9f9a9f522cf4c449c7fd489\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/df683201c7ffbd21a806a7cad657b661c5ebfb6f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e598c9683fe1cf97c2b11b800cc3cee072108220\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fc38a5a10e9e5a75eb9189854abeb8405b214cc9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}" } }
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…