CVE-2022-50251
MEDIUMLinux Kernel < 4.9.337 - Memory Leak
Title source: ruleDescription
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.
References (9)
Scores
CVSS v3
5.5
EPSS
0.0001
EPSS Percentile
2.5%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Classification
CWE
CWE-401
Status
published
Affected Products (9)
linux/linux_kernel
< 4.9.337
linux/Kernel
< 4.9.337linux
linux/Kernel
< 4.14.303linux
linux/Kernel
< 4.19.270linux
linux/Kernel
< 5.4.229linux
linux/Kernel
< 5.10.163linux
linux/Kernel
< 5.15.86linux
linux/Kernel
< 6.0.16linux
linux/Kernel
< 6.1.2linux
Timeline
Published
Sep 15, 2025
Tracked Since
Feb 18, 2026