# CVE-2025-38158: hisi_acc_vfio_pci: fix XQE dma address error

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2025-07-03T08:36:00.776Z
- Modified: 2026-06-17T09:16:17.400Z
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 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.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/809a9c10274e1bcf6d05f1c0341459a425a4f05f> (patch)
- <https://git.kernel.org/stable/c/f0423873e7aeb69cb68f4e8fa3827832e7b037ba> (patch)
- <https://git.kernel.org/stable/c/884a76e813178778d271fea59783763d32bb7e72> (patch)
- <https://git.kernel.org/stable/c/7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f> (patch)
- <https://git.kernel.org/stable/c/8bb7170c5a055ea17c6857c256ee73c10ff872eb> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38158](https://www.cve.org/CVERecord?id=CVE-2025-38158), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38158](https://nvd.nist.gov/vuln/detail/CVE-2025-38158), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38158 · Whole record: https://cve.day/CVE-2025-38158.json · Rebuilt by cve.day 2026-11-25T22:59:00.546Z
