CVE-2022-50353: mmc: wmt-sdmmc: fix return value check of mmc_add_host()
In the Linux kernel, the following vulnerability has been resolved:
mmc: wmt-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 goto error path which will call
mmc_free_host(), besides, clk_disable_unprepare() also needs be called.
Security readout for executives and security teams
Plain-English summary
CVE-2022-50353 is a Linux kernel availability bug in the wmt-sdmmc MMC/SD host driver. If a host-add operation fails, the driver can mishandle cleanup, leak allocated memory, and later crash the kernel during removal. The published impact is denial of service, not data theft or code execution.
Executive priority
Treat this as routine-to-prioritized kernel maintenance, higher for multi-user, embedded, or operational systems where a local crash would disrupt service. It does not currently justify emergency response based on the provided evidence.
Technical view
The bug is an unchecked mmc_add_host() return value after mmc_alloc_host(). On failure, cleanup skipped mmc_free_host() and clk_disable_unprepare(), leaving state that can cause a kernel crash when removing a device that was never added. CVSS is 5.5: local attack vector, low complexity, low privileges, no user interaction, high availability impact.
Likely exposure
Exposure is most relevant to Linux systems running affected kernel versions with the wmt-sdmmc driver present and usable. Systems without this driver are likely not exposed. The source bundle does not identify specific distributions, devices, or configurations beyond Linux kernel versions and upstream stable commits.
Exploitation context
The source bundle does not show active exploitation, and KEV is false. The CVSS vector indicates local, low-privilege conditions could trigger availability impact. No evidence in the provided sources supports remote exploitation, confidentiality impact, integrity impact, or public weaponization.
Researcher notes
The vulnerable behavior is cleanup-path error handling in the wmt-sdmmc driver, not a broad MMC subsystem takeover. Analysis should focus on whether mmc_add_host() failure paths are reachable in the target configuration and whether downstream kernels carry the stable fix.
Mitigation direction
Update to a vendor kernel containing the referenced upstream stable fix.
If updating is delayed, check vendor guidance for supported mitigations.
Inventory systems for affected Linux versions and wmt-sdmmc driver usage.
Prioritize systems where local users or workloads can access relevant MMC/SD hardware paths.
Validation and detection
Confirm the running kernel version against vendor advisories and the CVE record.
Check whether the wmt-sdmmc driver is built, loaded, or required.
Verify vendor kernel changelogs include the referenced stable commit for your branch.
After patching, confirm the updated kernel is booted, not only installed.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.