LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50846: mmc: via-sdmmc: fix return value check of mmc_add_host()

In the Linux kernel, the following vulnerability has been resolved: mmc: via-sdmmc: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, it will lead two issues: 1. The memory that allocated in mmc_alloc_host() is leaked. 2. In the remove() path, mmc_remove_host() will be called to delete device, but it's not added yet, it will lead a kernel crash because of null-ptr-deref in device_del(). Fix this by checking the return value and goto error path which will call mmc_free_host().

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2022-50846 is a Linux kernel bug in the VIA SD/MMC driver. If adding an MMC host fails, the driver can leak memory and later crash the kernel during device removal. Business impact is most likely availability disruption on affected systems using this driver, not data theft based on current sources.

Executive priority

Handle through normal kernel patch management, with higher priority for embedded or hardware-dependent systems using VIA SD/MMC. Current evidence supports availability risk, not confirmed active exploitation. Do not delay broader security updates solely for this item, but include it in the next appropriate kernel maintenance window.

Technical view

The via-sdmmc driver ignored the return value from mmc_add_host(). On error, memory from mmc_alloc_host() may leak. Later, remove() may call mmc_remove_host() for a host not successfully added, causing a null-pointer dereference in device_del(). Stable kernel commits add return-value checking and error-path cleanup.

Likely exposure

Exposure appears limited to Linux systems with affected kernel versions and the VIA SD/MMC host controller driver path. Servers, embedded devices, or endpoints without this hardware or driver are less likely exposed. The provided source does not identify affected distributions or products beyond Linux kernel versions.

Exploitation context

The sources do not report active exploitation, and this CVE is not marked KEV. The issue requires the vulnerable driver path and an mmc_add_host() failure condition. Public sources describe a crash and memory leak, not privilege escalation or remote code execution.

Researcher notes

The CVE record provides no CVSS, CWE, exploit evidence, or distribution-specific advisories. Affected-version data in the source bundle is kernel-focused and should be reconciled with downstream vendor backports. The root fix is return-value checking and cleanup after mmc_add_host() failure.

Mitigation direction

  • Update to vendor-supported Linux kernels containing the referenced stable fixes.
  • If immediate update is unavailable, check vendor guidance for safe temporary mitigations.
  • Prioritize systems using VIA SD/MMC hardware or the via-sdmmc driver.
  • Track distribution advisories for backported fixes matching the stable kernel commits.

Validation and detection

  • Inventory Linux kernel versions across affected environments.
  • Check whether the via-sdmmc driver is present, built, or loaded.
  • Compare installed kernels against vendor advisories or referenced stable fix commits.
  • Review crash logs for device_del null-pointer dereference involving MMC removal paths.
Prepared
Confidence
medium
Sources
11

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.

cve · low confidence lookup

CVE-2022-50846 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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.

0CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxf0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00, f0bf7f61b8405224bc52fc9a3ccd167a68126e00unaffected
LinuxLinux2.6.31, 0, 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.