CVE-2021-40042 Use after free in n/a

Medium 6.5 Published Updated

Attackers can cause service disruption on Huawei CloudEngine switches by exploiting an invalid pointer release vulnerability.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-40042?

CVE-2021-40042 is a medium-severity use after free vulnerability in n/a, published on 31 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

There is a release of invalid pointer vulnerability in some Huawei products, successful exploit may cause the process and service abnormal. Affected product versions include: CloudEngine 12800 V200R019C10SPC800, V200R019C10SPC900; CloudEngine 5800 V200R019C10SPC800, V200R020C00SPC600; CloudEngine 6800 versions V200R019C10SPC800, V200R019C10SPC900, V200R020C00SPC600, V300R020C00SPC200; CloudEngine 7800 V200R019C10SPC800.

Weakness: CWE-763

Which versions are affected by CVE-2021-40042?

It affects 4 products.

Products include Huawei Cloudengine 12800 Firmware, Huawei Cloudengine 5800 Firmware, Huawei Cloudengine 6800 Firmware, Huawei Cloudengine 7800 Firmware.

How do I fix CVE-2021-40042?

No fix has been published for CVE-2021-40042 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-40042 being exploited?

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

Sources

Also known as GHSA-2grq-h2qw-x3px.

Is CVE-2021-40042 in your software?

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

Check your SBOMs for free