CVE-2022-50858
Unknown Unknown - Not Provided
Memory Leak and Kernel Crash in Linux MMC Alcor Driver

Publication date: 2025-12-30

Last updated on: 2025-12-30

Assigner: kernel.org

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-30
Last Modified
2025-12-30
Generated
2026-06-16
AI Q&A
2025-12-30
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability occurs in the Linux kernel's MMC (MultiMediaCard) driver for Alcor devices. The function mmc_add_host() may return an error, but if its return value is ignored, the memory allocated by mmc_alloc_host() is leaked. This leads to a kernel crash because the system attempts to delete a device that was never successfully added during the removal process. The fix involves properly checking the return value of mmc_add_host() and freeing the allocated memory in case of an error.

Impact Analysis

This vulnerability can cause a kernel crash due to memory leaks and improper device removal handling. Such crashes can lead to system instability, potential denial of service, and loss of data or availability on affected Linux systems using the Alcor MMC driver.

Mitigation Strategies

Apply the patch or update to a Linux kernel version where the mmc: alcor driver has been fixed to properly check the return value of mmc_add_host() and free allocated memory on error paths to prevent kernel crashes.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50858. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart