CVE-2022-50886
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50886 is a memory leak and potential kernel crash vulnerability in the Linux kernel's mmc: toshsd driver, caused by an unchecked return value from mmc_add_host(). When mmc_add_host() returns an error and the return value is ignored, memory allocated by mmc_alloc_host() is leaked, and a subsequent attempt to delete a device that was never added in the remove path can trigger a kernel crash. The vulnerability was published on December 30, 2025, and affects Linux kernel versions from the introduction of the toshsd driver (commit a5eb8bbd) up to the respective stable branch fixes. The CVSS category is estimated as Medium, with an EPSS score of approximately 0.043% (Feedly).

Technical details

The root cause is an improper check for return values (CWE-252) in the mmc: toshsd MMC host controller driver. Specifically, mmc_add_host() can return a non-zero error code indicating failure, but the driver did not check this return value, causing the allocated MMC host structure (from mmc_alloc_host()) to be leaked. Additionally, on the error path, free_irq() was not called, compounding the resource leak. The fix involves checking the return value of mmc_add_host(), branching to an error path that calls mmc_free_host() and free_irq() to properly release resources (Feedly, Kernel Git).

Impact

The primary impact is a kernel memory leak and potential kernel crash (denial of service) on systems using the Toshiba SD (toshsd) MMC host controller driver. If mmc_add_host() fails during device initialization, the unfreed memory and the subsequent attempt to remove a device that was never registered can destabilize or crash the kernel, affecting system availability. Confidentiality and integrity impacts are not directly associated with this vulnerability; it is primarily an availability issue limited to systems with the affected hardware and driver (Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches across multiple stable branches. Fixed versions include: 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. Users should update their Linux kernel to one of these patched versions or later. No configuration-based workaround is available; upgrading the kernel is the recommended remediation. Systems not using Toshiba SD hardware or the toshsd kernel module are not affected (Feedly, Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management