CVE-2025-38158
JSON

5.5medium

hisi_acc_vfio_pci: fix XQE dma address error

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.12% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: hisi_acc_vfio_pci: fix XQE dma address error The dma addresses of EQE and AEQE are wrong after migration and results in guest kernel-mode encryption services failure. Comparing the definition of hardware registers, we found that there was an error when the data read from the register was combined into an address. Therefore, the address combination sequence needs to be corrected. Even after fixing the above problem, we still have an issue where the Guest from an old kernel can get migrated to new kernel and may result in wrong data. In order to ensure that the address is correct after migration, if an old magic number is detected, the dma address needs to be updated.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b0eed085903e7758532696d64397901a75bba8ba before 809a9c10274e1bcf6d05f1c0341459a425a4f05f, from b0eed085903e7758532696d64397901a75bba8ba before f0423873e7aeb69cb68f4e8fa3827832e7b037ba, from b0eed085903e7758532696d64397901a75bba8ba before 884a76e813178778d271fea59783763d32bb7e72, from b0eed085903e7758532696d64397901a75bba8ba before 7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f, from b0eed085903e7758532696d64397901a75bba8ba before 8bb7170c5a055ea17c6857c256ee73c10ff872eb, 5.18
Not affected: before 5.18, from 6.1.142 up to 6.1.*, from 6.6.94 up to 6.6.*, from 6.12.34 up to 6.12.*, from 6.15.3 up to 6.15.*, from 6.16 up to *
CVE List
linux linux_kernelfrom 5.18 before 6.1.142, from 6.2 before 6.6.94, from 6.7 before 6.12.34, from 6.13 before 6.15.3NVD
debian debian_linux11.0NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: hisi_acc_vfio_pci: fix XQE dma address error The dma addresses of EQE and AEQE are wrong after migration and results in guest kernel-mode encryption services failure. Comparing the definition of hardware registers, we found that there was an error when the data read from the register was combined into an address. Therefore, the address combination sequence needs to be corrected. Even after fixing the above problem, we still have an issue where the Guest from an old kernel can get migrated to new kernel and may result in wrong data. In order to ensure that the address is correct after migration, if an old magic number is detected, the dma address needs to be updated.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: hisi_acc_vfio_pci: corrección del error de dirección dma de XQE Las direcciones dma de EQE y AEQE son incorrectas después de la migración, lo que provoca un fallo en los servicios de cifrado en modo kernel del invitado. Al comparar la definición de los registros de hardware, descubrimos que se producía un error al combinar los datos leídos del registro en una dirección. Por lo tanto, es necesario corregir la secuencia de combinación de direcciones. Incluso tras corregir el problema anterior, sigue existiendo un problema en el que el invitado de un kernel antiguo puede migrarse al nuevo, lo que puede generar datos erróneos. Para garantizar que la dirección sea correcta después de la migración, si se detecta un número mágico antiguo, es necesario actualizar la dirección dma.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38158 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-38158 changed 2026-06-17Public domain