CVE-2022-50251

Source
https://cve.org/CVERecord?id=CVE-2022-50251
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50251.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50251
Downstream
Related
Published
2025-09-15T14:02:12.331Z
Modified
2026-03-20T11:47:19.986511Z
Summary
mmc: vub300: fix return value check of mmc_add_host()
Details

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

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

mmcaddhost() may return error, if we ignore its return value, the memory that allocated in mmcallochost() 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 mmcfreehost(), besides, the timer added before mmcaddhost() needs be del.

And this patch fixes another missing call mmcfreehost() if usbcontrolmsg() fails.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50251.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
88095e7b473a3d9ec3b9c60429576e9cbd327c89
Fixed
41ed46bdbd2878cd6567abe0974a445f8b1b8ec8
Fixed
25f05d762ca5e1c685002a53dd44f68e78ca3feb
Fixed
a46e681151bbdacdf6b89ee8c4e5bad0555142bb
Fixed
3b29f8769d32016b2d89183db4d80c7a71b7e35e
Fixed
3049a3b927a40d89d4582ff1033cd7953be773c7
Fixed
afc898019e7bf18c5eb7a0ac19852fcb1b341b3c
Fixed
c9e85979b59cb86f0a15defa8199d740e2b36b90
Fixed
2044b2ea77945f372ef161d1bbf814e471767ff2
Fixed
0613ad2401f88bdeae5594c30afe318e93b14676

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50251.json"