Linux Kernel LoongArch ARCH_DMA_MINALIGN Vulnerability Allowing Improper DMA Buffer Alignment

Vulnerability

A vulnerability exists in the Linux kernel for LoongArch architecture, where the default ARCH_DMA_MINALIGN value of 1 does not meet the alignment requirements of certain devices, such as APBDMA, which need 16-byte alignment. This misalignment can lead to errors in data writing, as the hardware may incorrectly handle cacheline writes when the buffer is too small. The vulnerability arises from the risk of allocating small memory buffers for Direct Memory Access (DMA) operations, potentially causing hardware errors. The issue has been addressed by increasing the ARCH_DMA_MINALIGN value to 16, ensuring safer buffer allocations for DMA while maintaining efficiency in memory management.

Impact

The vulnerability could lead to improper alignment of memory buffers used in DMA operations, causing hardware errors in data transmission and potentially disrupting system performance or functionality.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.