CVE-2022-50251

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

No CVSS score yet EPSS 0.17%

Published 15 Sep 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50251

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50251 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.83% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before 41ed46bdbd2878cd6567abe0974a445f8b1b8ec8
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before 25f05d762ca5e1c685002a53dd44f68e78ca3feb
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before a46e681151bbdacdf6b89ee8c4e5bad0555142bb
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before 3b29f8769d32016b2d89183db4d80c7a71b7e35e
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before 3049a3b927a40d89d4582ff1033cd7953be773c7
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before afc898019e7bf18c5eb7a0ac19852fcb1b341b3c
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before c9e85979b59cb86f0a15defa8199d740e2b36b90
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before 2044b2ea77945f372ef161d1bbf814e471767ff2
affected from 88095e7b473a3d9ec3b9c60429576e9cbd327c89, before 0613ad2401f88bdeae5594c30afe318e93b14676
Other versions: unaffected
Linux
affected 3.0
unaffected before 3.0
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50251 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50251

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50251
trivy image --scanners vuln IMAGE | grep CVE-2022-50251

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50251 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.