In the Linux kernel, the following vulnerability has been resolved: mcb: fix error handling in mcb_alloc_bus() There are two bugs: 1) If ida_simple_get() fails then this code calls put_device(carrier) but we haven't yet called get_device(carrier) and probably that leads to a use after free. 2) After device_initialize() then we need to use put_device() to release the bus. This will free the internal resources tied to the device and call mcb_free_bus() which will free the rest.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-05-21T15:03:29.882Z

Updated: 2024-11-04T12:04:26.844Z

Reserved: 2024-05-21T14:58:30.809Z

Link: CVE-2021-47361

cve-icon Vulnrichment

Updated: 2024-08-04T05:32:08.591Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-05-21T15:15:22.283

Modified: 2024-05-21T16:54:26.047

Link: CVE-2021-47361

cve-icon Redhat

Severity : Low

Publid Date: 2024-05-21T00:00:00Z

Links: CVE-2021-47361 - Bugzilla