CVE-2022-50268 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: moxart: 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 goto error path which will call mmc_free_host().
A vulnerability exists in the Linux kernel's MOXA ART SD/MMC driver, specifically in the return value handling of the 'mmc_add_host()' function. If the return value is ignored, it can lead to a memory leak from 'mmc_alloc_host()', causing a kernel crash when an unadded device is deleted during the removal process. This issue has been addressed by modifying the code to properly check the return value and handle errors appropriately.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the Linux Kernel Archive.
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.
No SSVC data is available for this CVE.
References 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/0ca18d09c744fb030ae9bc5836c3e357e0237dea | kernel.org | Patch |
| https://git.kernel.org/stable/c/40aa73c70e8a5706f9cbe01409a5e51cc0f1750e | kernel.org | Patch |
| https://git.kernel.org/stable/c/7c3b301ca8b0cab392c71da8fcdfa499074f8e97 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8f8bb62c7c5c833758ef1563fe738afd579c3efe | kernel.org | Patch |
| https://git.kernel.org/stable/c/a4c765f5d8e58138cff69f1510b2e8942ec37022 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a94d466f31a5201995d39bc1208e2c09ab04f0bf | kernel.org | Patch |
| https://git.kernel.org/stable/c/b174f2b36c638fc7737df6c8aac1889a646be98f | kernel.org | Patch |
| https://git.kernel.org/stable/c/c7e9a2059fb943fc3c3fa12261518fd72a0fc136 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f0502fe86a2db2336c9498d2de3e97f22dcf85ae | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
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
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 3, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |