CVE-2021-47286 bus: mhi: core: Validate channel ID when processing command completions

High 7.8 Published Updated

A missing validation in the Linux kernel MHI bus driver allows out-of-bounds memory access via crafted device events, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47286?

CVE-2021-47286 is a high-severity memory corruption vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

bus: mhi: core: Validate channel ID when processing command completions

MHI reads the channel ID from the event ring element sent by the device which can be any value between 0 and 255. In order to prevent any out of bound accesses, add a check against the maximum number of channels supported by the controller and those channels not configured yet so as to skip processing of that event ring element.

Weakness: CWE-787

Which versions are affected by CVE-2021-47286?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47286?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-47286 being exploited?

There is no known exploitation of CVE-2021-47286 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47286, GHSA-hw2j-3fc3-hf74, UBUNTU-CVE-2021-47286.

Is CVE-2021-47286 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free