CVE-2022-50858

Not scored yetLast modified Jun 17, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

mmc: alcor: 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.

Metrics

No CVSS score has been published yet.

Affected software

VendorProductVersions
LinuxLinux>= c5413ad815a675b5c98a002353d8e96b44b164e9, < 289c964fe182ce755044a6cd57698072e12ffa6f; >= c5413ad815a675b5c98a002353d8e96b44b164e9, < 4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2; >= c5413ad815a675b5c98a002353d8e96b44b164e9, < 29c5b4da41f35108136d843c7432885c78cf8272; >= c5413ad815a675b5c98a002353d8e96b44b164e9, < 48dc06333d75f41c2ce9ba954bc3231324b45914; >= c5413ad815a675b5c98a002353d8e96b44b164e9, < 60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2; >= c5413ad815a675b5c98a002353d8e96b44b164e9, < e93d1468f429475a753d6baa79b853b7ee5ef8c0
LinuxLinux5.0

References

Timeline

Published
Dec 30, 2025
Last modified
Jun 17, 2026
NVD status
Deferred

Related CVEs from 2022

CVE-2022-50859In the Linux kernel, the following vulnerability has been resolved: cifs: Fix the error length of VALIDATE_NEGOTIATE_INFO message Commit dCVE-2022-508607.8In the Linux kernel, the following vulnerability has been resolved: apparmor: Fix memleak in alloc_ns() After changes in commit a1bd627b46CVE-2022-508617.5In the Linux kernel, the following vulnerability has been resolved: NFSD: Finish converting the NFSv2 GETACL result encoder The xdr_streamCVE-2022-50862In the Linux kernel, the following vulnerability has been resolved: bpf: prevent decl_tag from being referenced in func_proto Syzkaller waCVE-2022-50863In the Linux kernel, the following vulnerability has been resolved: wifi: rtw89: free unused skb to prevent memory leak This avoid potentiCVE-2022-50864In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds due to too large exponent of block sizeCVE-2022-508657.5In the Linux kernel, the following vulnerability has been resolved: tcp: fix a signed-integer-overflow bug in tcp_add_backlog() The type oCVE-2022-50866In the Linux kernel, the following vulnerability has been resolved: ASoC: pxa: fix null-pointer dereference in filter() kasprintf() would CVE-2022-508677.8In the Linux kernel, the following vulnerability has been resolved: drm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage adreno_show_object()CVE-2022-50868In the Linux kernel, the following vulnerability has been resolved: hwrng: amd - Fix PCI device refcount leak for_each_pci_dev() is implemCVE-2022-508697.8In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix slab-out-of-bounds in r_page When PAGE_SIZE is 64K, if rCVE-2022-50870In the Linux kernel, the following vulnerability has been resolved: powerpc/rtas: avoid device tree lookups in rtas_os_term() rtas_os_term
CVE-2022-50858: Unscored | Vulnix