Vulnerability in Linux

CVE-2022-50886

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

mmc: toshsd: 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, free_irq() also needs be called.

Published · last modified .

EPSS exploit prediction

EPSS 0.002, 14.2th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions a5eb8bbd66ccf9f169419f9652544aec771b7c57, 3.19, 0

References