CVE-2022-50347 Details
Description
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.
A vulnerability in the Linux kernel's Realtek USB SDMMC host driver can lead to a kernel crash. The issue arises because the function 'mmc_add_host()' may return an error, and if this return value is ignored, it can cause a memory leak from 'mmc_alloc_host()'. This leak occurs because the driver fails to properly manage the device's lifecycle, deleting a device that was not successfully added. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1491667d5450778a265eddddd294219acfd648cb | kernel.org | Patch |
| https://git.kernel.org/stable/c/7fa922c7a3dd623fd59f1af50e8896fd9ca7f654 | kernel.org | Patch |
| https://git.kernel.org/stable/c/89303ddbb502c3bc8edbf864f9f85500c8fe07e9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/937112e991ed25d1727d878734adcbef3b900274 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a522e26a20a43dcfbef9ee9f71ed803290e852b0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d7ad7278be401b09c9f9a9f522cf4c449c7fd489 | kernel.org | Patch |
| https://git.kernel.org/stable/c/df683201c7ffbd21a806a7cad657b661c5ebfb6f | kernel.org | Patch |
| https://git.kernel.org/stable/c/e598c9683fe1cf97c2b11b800cc3cee072108220 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fc38a5a10e9e5a75eb9189854abeb8405b214cc9 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.16, < 4.9.337 >= 4.10, < 4.14.303 >= 4.15, < 4.19.270 >= 4.20, < 5.4.229 >= 5.5, < 5.10.163 >= 5.11, < 5.15.86 >= 5.16, < 6.0.16 >= 6.1, < 6.1.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 1, 2025 | Initial Analysis | [email protected] |
| Sep 16, 2025 | New CVE Received | kernel.org |