CVE-2025-22049 LoongArch: Increase ARCH_DMA_MINALIGN up to 16
A Linux kernel vulnerability allows memory corruption via DMA misalignment on LoongArch devices, 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-22049?
CVE-2025-22049 is a high-severity memory corruption vulnerability in Linux kernel, published on 16 Apr 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:
LoongArch: Increase ARCH_DMA_MINALIGN up to 16
ARCH_DMA_MINALIGN is 1 by default, but some LoongArch-specific devices (such as APBDMA) require 16 bytes alignment. When the data buffer length is too small, the hardware may make an error writing cacheline. Thus, it is dangerous to allocate a small memory buffer for DMA. It's always safe to define ARCH_DMA_MINALIGN as L1_CACHE_BYTES but unnecessary (kmalloc() need small memory objects). Therefore, just increase it to 16.
Which versions are affected by CVE-2025-22049?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-22049?
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-22049 being exploited?
There is no known exploitation of CVE-2025-22049 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-22049, DEBIAN-CVE-2025-22049, GHSA-q8p5-jh8j-ww29, ROOT-OS-UBUNTU-2204-CVE-2025-22049, UBUNTU-CVE-2025-22049.