CVE-2021-47064 mt76: fix potential DMA mapping leak

Medium 5.3 Published Updated

An uninitialized variable in the mt76 driver can cause DMA mapping leaks, potentially leading to resource exhaustion and denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47064?

CVE-2021-47064 is a medium-severity memory corruption vulnerability in Linux kernel, published on 29 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

mt76: fix potential DMA mapping leak

With buf uninitialized in mt76_dma_tx_queue_skb_raw, its field skip_unmap could potentially inherit a non-zero value from stack garbage. If this happens, it will cause DMA mappings for MCU command frames to not be unmapped after completion

Weakness: CWE-401

Which versions are affected by CVE-2021-47064?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47064?

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-47064 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47064, GHSA-vv74-wh7g-52xw, UBUNTU-CVE-2021-47064.

Is CVE-2021-47064 in your software?

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

Check your SBOMs for free