CVE-2022-50347
Last modified
CVE-2022-50347 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 3.16, < 4.9.337 |
| Linux | Linux Kernel | >= 4.10, < 4.14.303 |
| Linux | Linux Kernel | >= 4.15, < 4.19.270 |
| Linux | Linux Kernel | >= 4.20, < 5.4.229 |
| Linux | Linux Kernel | >= 5.5, < 5.10.163 |
| Linux | Linux Kernel | >= 5.11, < 5.15.86 |
| Linux | Linux Kernel | >= 5.16, < 6.0.16 |
| Linux | Linux Kernel | >= 6.1, < 6.1.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-50347?
How severe is CVE-2022-50347?
How do I fix CVE-2022-50347?
Are you affected by CVE-2022-50347?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
