CVE-2021-47361

mcb: fix error handling in mcb_alloc_bus()

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 03:03 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.10 ≤ v < 4.14.2494.15 ≤ v < 4.19.2094.20 ≤ v < 5.4.1504.7 ≤ v < 4.14.2494.7 ≤ v < 4.19.2094.7 ≤ v < 4.9.2854.7 ≤ v < 5.10.704.7 ≤ v < 5.14.94.7 ≤ v < 5.154.7 ≤ v < 5.4.1505.11 ≤ v < 5.14.95.5 ≤ v < 5.10.7018d28819809909c3f24bb72183a901c5e332a63d5.15 rc15.15 rc2
Vendor states this is fixed in 115b07d9f47e3996430b8f2007edd9768e1f807f (fixed)
Vendor states this is fixed in 25a1433216489de4abc889910f744e952cb6dbae (fixed)
Vendor states this is fixed in 66f74ba9be9daf9c47fface6af3677f602774f6b (fixed)
Vendor states this is fixed in 7751f609eadf36b1f53712bae430019c53a16eb0 (fixed)
Vendor states this is fixed in 8a558261fa57a6deefb0925ab1829f698b194aea (fixed)
Vendor states this is fixed in 91e4ad05bf18322b5921d1a6c9b603f6eb1694f0 (fixed)
Vendor states this is fixed in 9fc198f415dee070a1de957bb5bf5921d8df3499 (fixed)
Vendor states this is fixed in 4.14.249 (unaffected)
Vendor states this is fixed in 4.19.209 (unaffected)
Vendor states this is fixed in 4.7 (unaffected)
Vendor states this is fixed in 4.9.285 (unaffected)
Vendor states this is fixed in 5.10.70 (unaffected)
Vendor states this is fixed in 5.14.9 (unaffected)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.4.150 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/115b07d9f47e3996430b8f2007edd9768e1f807f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/25a1433216489de4abc889910f744e952cb6dbae
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/66f74ba9be9daf9c47fface6af3677f602774f6b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7751f609eadf36b1f53712bae430019c53a16eb0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8a558261fa57a6deefb0925ab1829f698b194aea
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/91e4ad05bf18322b5921d1a6c9b603f6eb1694f0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9fc198f415dee070a1de957bb5bf5921d8df3499

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card