CVE-2021-47361

mcb: fix error handling in mcb_alloc_bus()

No CVSS score yet EPSS 0.24%

Published 21 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47361

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47361 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 8a558261fa57a6deefb0925ab1829f698b194aea
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 115b07d9f47e3996430b8f2007edd9768e1f807f
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 66f74ba9be9daf9c47fface6af3677f602774f6b
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 7751f609eadf36b1f53712bae430019c53a16eb0
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 91e4ad05bf18322b5921d1a6c9b603f6eb1694f0
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 9fc198f415dee070a1de957bb5bf5921d8df3499
affected from 18d28819809909c3f24bb72183a901c5e332a63d, before 25a1433216489de4abc889910f744e952cb6dbae
Other versions: unaffected
Linux
affected 4.7
unaffected before 4.7
unaffected from 4.9.285 up to and including 4.9.*
unaffected from 4.14.249 up to and including 4.14.*
unaffected from 4.19.209 up to and including 4.19.*
unaffected from 5.4.150 up to and including 5.4.*
unaffected from 5.10.70 up to and including 5.10.*
unaffected from 5.14.9 up to and including 5.14.*
unaffected 5.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47361 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47361

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47361
trivy image --scanners vuln IMAGE | grep CVE-2021-47361

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47361 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.