mmc: moxart: fix return value check of mmc_add_host()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0ca18d09c744fb030ae9bc5836c3e357e0237dea, Kernel 40aa73c70e8a5706f9cbe01409a5e51cc0f1750e, Kernel 7c3b301ca8b0cab392c71da8fcdfa499074f8e97 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: mmc: moxart: 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().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =3.16, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <0ca18d09c744fb030ae9bc5836c3e357e0237dea, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <40aa73c70e8a5706f9cbe01409a5e51cc0f1750e, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <7c3b301ca8b0cab392c71da8fcdfa499074f8e97, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <8f8bb62c7c5c833758ef1563fe738afd579c3efe, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <a4c765f5d8e58138cff69f1510b2e8942ec37022, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <a94d466f31a5201995d39bc1208e2c09ab04f0bf, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <b174f2b36c638fc7737df6c8aac1889a646be98f, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <c7e9a2059fb943fc3c3fa12261518fd72a0fc136, >=1b66e94e6b9995323190f31c51d8e1a6f516627e <f0502fe86a2db2336c9498d2de3e97f22dcf85ae | 0ca18d09c744fb030ae9bc5836c3e357e0237dea, 40aa73c70e8a5706f9cbe01409a5e51cc0f1750e, 7c3b301ca8b0cab392c71da8fcdfa499074f8e97, 8f8bb62c7c5c833758ef1563fe738afd579c3efe, a4c765f5d8e58138cff69f1510b2e8942ec37022, a94d466f31a5201995d39bc1208e2c09ab04f0bf, b174f2b36c638fc7737df6c8aac1889a646be98f, c7e9a2059fb943fc3c3fa12261518fd72a0fc136, f0502fe86a2db2336c9498d2de3e97f22dcf85ae |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket