CVE-2022-50858 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: alcor: 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.
A vulnerability exists in the Linux kernel's Alcor Micro Cardreader SD/MMC driver, specifically in the handling of the 'mmc_add_host()' function. The driver fails to properly check the return value of this function, which can lead to a memory leak from 'mmc_alloc_host()'. This oversight may cause a kernel crash when the driver attempts to remove a device that was not successfully added. The issue has been addressed by implementing a return value check and freeing the host memory in case of an error.
Users can upgrade to a version of the Linux kernel that includes the fix for this vulnerability. The patch is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/289c964fe182ce755044a6cd57698072e12ffa6f | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/29c5b4da41f35108136d843c7432885c78cf8272 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/48dc06333d75f41c2ce9ba954bc3231324b45914 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e93d1468f429475a753d6baa79b853b7ee5ef8c0 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 30, 2025 | New CVE Received | kernel.org |
Volerion