CVE-2025-22049
NoneCVSS
—
EPSS
0.2%
Published
Apr 16, 2025
CISA due date
—
Cloudanix analysis
A flaw in how certain processors handle small data transfers to hardware could cause errors or instability on affected systems.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
ARCH_DMA_MINALIGN default of 1 on LoongArch permits allocation of DMA buffers smaller than device requirements (e.g., APBDMA needing 16 bytes), allowing hardware to perform erroneous cacheline writes on undersized buffers.
Why it matters to the business
LoongArch-based systems risk memory corruption or instability during DMA operations involving small buffers, potentially disrupting device functionality and requiring architecture-specific updates across affected kernels.
How an attack unfolds
An attacker interacts with LoongArch hardware requiring DMA (such as APBDMA) to force allocation of small memory buffers via the kernel, triggering cacheline write errors that corrupt data or cause faults.
How to fix it
Update affected packages to the listed fixed versions, including libsoup 0:2.62.3-2.el8_4.1 across RHEL 8.4 variants and the Linux kernel commit f39af67f03b564b763b06e44cb960c10a382d54a; rebuild and reboot as required.
How to confirm the fix worked
Verify kernel configuration reports ARCH_DMA_MINALIGN >= 16, confirm package versions match the fixed releases, and test DMA operations with small buffers on LoongArch hardware.
Typical attack path
- Identify LoongArch system with vulnerable kernel and DMA-capable devices
- Trigger code paths that allocate small DMA buffers through device I/O or driver calls
- Exploit resulting cacheline misalignment to induce hardware write errors
- Leverage corruption for denial of service or further memory manipulation
How to detect it
Search kernel logs and dmesg for DMA alignment warnings or cacheline errors on LoongArch; inspect boot messages for ARCH_DMA_MINALIGN values below 16.
What your security team should do
- Prioritize kernel updates on all LoongArch systems within 30 days
- Audit DMA-using drivers and devices for small-buffer allocations
- Monitor for post-update stability in DMA-heavy workloads
- Review downstream dependents for similar alignment issues
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | linux | 0 | No fix |
| Debian:11 | linux-6.1 | 0 | 6.1.137-1~deb11u1 |
| Debian:12 | linux | 0 | No fix |
| Debian:13 | linux | 0 | No fix |
| Debian:13 | linux | 0 | 6.12.25-1 |
| Linux | Kernel | 5.19.0 | 6.1.134 |
| Mageia:9 | kernel | 0 | 6.6.88-3.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.88-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.0.24-70.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-78.mga9 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39869 In the Linux kernel, the following vulnerability has been resolved: dmaengine: ti: edma… Also affects linux
- CVE-2025-39873 In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can… Also affects linux
- CVE-2025-39863 In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix… Also affects linux
- CVE-2025-39865 In the Linux kernel, the following vulnerability has been resolved: tee: fix NULL pointer… Also affects linux
- CVE-2025-39866 In the Linux kernel, the following vulnerability has been resolved: fs: writeback: fix… Also affects linux