CVE-2022-50347: mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2022-50347 is a Linux kernel availability flaw in the Realtek USB SD/MMC driver path. If an internal host-add operation fails and is ignored, cleanup can leak memory and later crash the kernel. The published severity is medium because impact is denial of service, not data theft or code execution.
Executive priority
Treat as routine but real kernel availability risk. It is not currently supported by the provided sources as actively exploited or remote. Patch through normal Linux maintenance, with faster handling for shared workstations, kiosks, or systems where local users can interact with removable media hardware.
Technical view
The rtsx_usb_sdmmc driver did not check mmc_add_host() failure. The fix adds error handling, frees the MMC host, unregisters the LED class device, and disables runtime power management on the error path. CVSS 3.1 is 5.5: local attack vector, low complexity, low privileges, no user interaction, availability high.
Likely exposure
Exposure is most relevant to Linux systems running affected kernel versions with the rtsx_usb_sdmmc driver code present or in use. The bundle lists Linux versions including 3.16, 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, and 6.2 as affected.
Exploitation context
The source bundle does not show CISA KEV listing or any cited active exploitation. The CVSS vector indicates local, low-privilege exploitation with no user interaction and availability-only impact. Public sources provided do not describe exploit code, weaponization, or remote reachability.
Researcher notes
Evidence is limited to CVE metadata and Linux stable commits. The provided description identifies incorrect error handling after mmc_add_host() failure and cleanup defects. Exact trigger conditions, distribution package status, and practical exploitability are not detailed in the source bundle.
Mitigation direction
Apply the relevant Linux stable update containing the referenced kernel fix.
Check your distribution vendor advisory for backported fixes and package names.
Prioritize systems using Realtek USB SD/MMC reader functionality.
Reboot into the fixed kernel after applying updates.
Avoid treating this as fixed solely because the upstream commit exists.
Validation and detection
Inventory running kernel versions across Linux endpoints and servers.
Check whether the rtsx_usb_sdmmc module is present or loaded.
Compare vendor kernel build changelogs against the referenced stable commits.
Confirm patched systems booted into the updated kernel.
Monitor kernel logs for MMC driver errors or related crashes.
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.