CVE-2022-50251

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

published September 15, 2025

CVSS
—
EPSS
0%
Percentile
5.2
In the wild
Unconfirmed
What it is

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

mmc: vub300: 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(), besides, the timer added before mmc_add_host() needs be del.

And this patch fixes another missing call mmc_free_host() if usb_control_msg()

fails.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00163 · 5.2th percentile
Published
2025-09-15T14:02Z
EPSS history
Timeline
  • 15 SEP 14:02Z
    mmc: vub300: fix return value check of mmc_add_host()
    cvelistv5