CVE-2022-50858

mmc: alcor: fix return value check of mmc_add_host()

N/A
Published: December 30, 2025 at 12:15 PM UTC
Updated: June 17, 2026 at 05:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.0 ≤ v < 5.10.1635.0 ≤ v < 5.15.865.0 ≤ v < 5.4.2295.0 ≤ v < 6.0.165.0 ≤ v < 6.1.25.0 ≤ v < 6.25.0c5413ad815a675b5c98a002353d8e96b44b164e9
Vendor states this is fixed in 289c964fe182ce755044a6cd57698072e12ffa6f (fixed)
Vendor states this is fixed in 29c5b4da41f35108136d843c7432885c78cf8272 (fixed)
Vendor states this is fixed in 48dc06333d75f41c2ce9ba954bc3231324b45914 (fixed)
Vendor states this is fixed in 4a6e5d0222804a3eaf2ea4cf893f412e7cf98cb2 (fixed)
Vendor states this is fixed in 60fafcf2fb7ee9a4125dc9a86eeb9d490acf23e2 (fixed)
Vendor states this is fixed in e93d1468f429475a753d6baa79b853b7ee5ef8c0 (fixed)
Vendor states this is fixed in 5.0 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card