CVE-2025-38401 mtk-sd: Prevent memory corruption from DMA map failure

High 7.8 Published Updated

A flaw in the Linux kernel mtk-sd driver allows memory corruption when DMA mapping fails, potentially leading to code execution or system 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-2025-38401?

CVE-2025-38401 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 25 Jul 2025. 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:

mtk-sd: Prevent memory corruption from DMA map failure

If msdc_prepare_data() fails to map the DMA region, the request is not prepared for data receiving, but msdc_start_data() proceeds the DMA with previous setting. Since this will lead a memory corruption, we have to stop the request operation soon after the msdc_prepare_data() fails to prepare it.

Weakness: CWE-787

Which versions are affected by CVE-2025-38401?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38401?

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-2025-38401 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-65738, AZL-73022, BELL-CVE-2025-38401, DEBIAN-CVE-2025-38401, GHSA-76v9-cvv3-9m9p, ROOT-OS-DEBIAN-11-CVE-2025-38401 and 4 more.

Is CVE-2025-38401 in your software?

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

Check your SBOMs for free