CVE-2022-50347
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50347 affects the Linux kernel's MMC subsystem, specifically the rtsxusbsdmmc driver. The vulnerability was disclosed in September 2025 and involves an improper return value check of mmcaddhost() function that could lead to memory leaks and potential kernel crashes (Ubuntu Security).

Technical details

The vulnerability stems from a failure to properly check the return value of mmcaddhost() in the rtsxusbsdmmc driver. When mmcaddhost() returns an error, the memory allocated by mmcallochost() is not properly freed, leading to memory leaks. Additionally, the issue can cause a kernel crash due to attempting to delete a device that was not properly added in the remove path. The fix involves implementing proper return value checking and calling mmcfreehost() in the error path, along with proper handling of ledclassdevunregister() and pmruntimedisable() (Ubuntu Security).

Impact

The vulnerability can result in memory leaks in the Linux kernel and potential system crashes when removing affected devices. This affects systems using the rtsxusbsdmmc driver for MMC/SD card functionality (Ubuntu Security).

Mitigation and workarounds

The issue has been fixed in various Linux kernel versions across different distributions. Ubuntu has released patches for multiple versions: 5.15.0-69.76 for 22.04 LTS (jammy), 5.4.0-144.161 for 20.04 LTS (focal), and 4.15.0-208.220 for 18.04 LTS (bionic). The fix includes proper error handling and memory management in the affected driver (Ubuntu Security).

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-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

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