CVE-2025-22049: LoongArch: Increase ARCH_DMA_MINALIGN up to 16
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Increase ARCHDMAMINALIGN up to 16
ARCHDMAMINALIGN 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 ARCHDMAMINALIGN as L1CACHEBYTES but unnecessary (kmalloc() need small memory objects). Therefore, just increase it to 16.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernel (LoongArch)to a version that resolves this vulnerability.Fixed in 16
Event History
Frequently Asked Questions
What is the severity of CVE-2025-22049?
CVE-2025-22049 is classified as a high severity vulnerability in the Linux kernel due to potential data corruption from improper data buffer alignment.
How do I fix CVE-2025-22049?
To fix CVE-2025-22049, it is recommended to update the Linux kernel to the latest version that addresses this vulnerability.
Which systems are affected by CVE-2025-22049?
CVE-2025-22049 affects systems running the Linux kernel, particularly those utilizing LoongArch-specific devices.
What is ARCH_DMA_MINALIGN in CVE-2025-22049?
ARCH_DMA_MINALIGN is a kernel parameter that specifies the minimum alignment for direct memory access operations, which is set to 1 by default in this vulnerability.
What types of attacks can exploit CVE-2025-22049?
Exploitation of CVE-2025-22049 can lead to denial-of-service attacks or data corruption due to improper alignment of data buffers.