{"id":"CVE-2021-47361","aliases":["CVE-2021-47361"],"related":[],"kind":"vulnerability","state":"published","title":"mcb: fix error handling in mcb_alloc_bus()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmcb: fix error handling in mcb_alloc_bus()\n\nThere are two bugs:\n1) If ida_simple_get() fails then this code calls put_device(carrier)\n   but we haven't yet called get_device(carrier) and probably that\n   leads to a use after free.\n2) After device_initialize() then we need to use put_device() to\n   release the bus.  This will free the internal resources tied to the\n   device and call mcb_free_bus() which will free the rest.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmcb: fix error handling in mcb_alloc_bus()\n\nThere are two bugs:\n1) If ida_simple_get() fails then this code calls put_device(carrier)\n   but we haven't yet called get_device(carrier) and probably that\n   leads to a use after free.\n2) After device_initialize() then we need to use put_device() to\n   release the bus.  This will free the internal resources tied to the\n   device and call mcb_free_bus() which will free the rest.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mcb: corrige el manejo de errores en mcb_alloc_bus() Hay dos errores: 1) Si ida_simple_get() falla, entonces este código llama a put_device(carrier) pero aún no hemos llamado a get_device( transportista) y probablemente eso conduzca a un uso posterior gratuito. 2) Después de device_initialize() entonces necesitamos usar put_device() para liberar el bus. Esto liberará los recursos internos vinculados al dispositivo y llamará a mcb_free_bus() que liberará el resto.","source":"nvd"}],"published":"2024-05-21T15:03:29.882Z","modified":"2026-06-17T04:17:17.597Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"8a558261fa57a6deefb0925ab1829f698b194aea","status":"affected"},{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"115b07d9f47e3996430b8f2007edd9768e1f807f","status":"affected"},{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"66f74ba9be9daf9c47fface6af3677f602774f6b","status":"affected"},{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"7751f609eadf36b1f53712bae430019c53a16eb0","status":"affected"},{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"91e4ad05bf18322b5921d1a6c9b603f6eb1694f0","status":"affected"},{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"9fc198f415dee070a1de957bb5bf5921d8df3499","status":"affected"},{"type":"git","introduced":"18d28819809909c3f24bb72183a901c5e332a63d","fixed":"25a1433216489de4abc889910f744e952cb6dbae","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"4.9.285","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.249","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.209","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.150","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.70","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.14.9","lastAffected":"5.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.7","fixed":"4.9.285"},{"status":"affected","introduced":"4.10","fixed":"4.14.249"},{"status":"affected","introduced":"4.15","fixed":"4.19.209"},{"status":"affected","introduced":"4.20","fixed":"5.4.150"},{"status":"affected","introduced":"5.5","fixed":"5.10.70"},{"status":"affected","introduced":"5.11","fixed":"5.14.9"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8a558261fa57a6deefb0925ab1829f698b194aea","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/115b07d9f47e3996430b8f2007edd9768e1f807f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66f74ba9be9daf9c47fface6af3677f602774f6b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7751f609eadf36b1f53712bae430019c53a16eb0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91e4ad05bf18322b5921d1a6c9b603f6eb1694f0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fc198f415dee070a1de957bb5bf5921d8df3499","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/25a1433216489de4abc889910f744e952cb6dbae","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-21T18:23:29.755Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47361","url":"https://www.cve.org/CVERecord?id=CVE-2021-47361","licence":"CVE Terms of Use","modified":"2026-05-11T13:53:13.268Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47361","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47361","licence":"Public domain","modified":"2026-06-17T04:17:17.597Z"}],"updatedAt":"2026-11-25T22:58:08.816Z","epss":{"score":0.00242,"percentile":0.16524,"date":"2026-12-01T12:00:22.000Z"}}