CVE-2025-22049
JSON

7.8high

LoongArch: Increase ARCH_DMA_MINALIGN up to 16

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom fa96b57c149061f71a70bd6582d995f6424fbbf4 before f39af67f03b564b763b06e44cb960c10a382d54a, from fa96b57c149061f71a70bd6582d995f6424fbbf4 before 279ec25c2df49fba1cd9488f2ddd045d9cb2112e, from fa96b57c149061f71a70bd6582d995f6424fbbf4 before 1d0def2d1658666ec1f32c9495df60e7411e3c82, from fa96b57c149061f71a70bd6582d995f6424fbbf4 before bfff341cac7c650e6ca8d10503725992f5564d0f, from fa96b57c149061f71a70bd6582d995f6424fbbf4 before 8b82aea3666f8f2c78f86148d78aea99c46e0f82, from fa96b57c149061f71a70bd6582d995f6424fbbf4 before 4103cfe9dcb88010ae4911d3ff417457d1b6a720, 5.19
Not affected: before 5.19, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.*, from 6.14.2 up to 6.14.*
CVE List
linux linux_kernelfrom 5.19 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: LoongArch: Aumentar ARCH_DMA_MINALIGN hasta 16. ARCH_DMA_MINALIGN es 1 por defecto, pero algunos dispositivos específicos de LoongArch (como APBDMA) requieren una alineación de 16 bytes. Cuando la longitud del búfer de datos es demasiado pequeña, el hardware puede cometer un error al escribir la línea de caché. Por lo tanto, es peligroso asignar un búfer de memoria pequeño para DMA. Siempre es seguro definir ARCH_DMA_MINALIGN como L1_CACHE_BYTES, pero no es necesario (kmalloc() requiere objetos de memoria pequeños). Por lo tanto, simplemente auméntelo a 16.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22049 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-22049 changed 2026-07-30Public domain