CVE-2025-38158
hisi_acc_vfio_pci: fix XQE dma address error
Check your servers for CVE-2025-38158
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38158 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.93% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b0eed085903e7758532696d64397901a75bba8ba, before 809a9c10274e1bcf6d05f1c0341459a425a4f05f affected from b0eed085903e7758532696d64397901a75bba8ba, before f0423873e7aeb69cb68f4e8fa3827832e7b037ba affected from b0eed085903e7758532696d64397901a75bba8ba, before 884a76e813178778d271fea59783763d32bb7e72 affected from b0eed085903e7758532696d64397901a75bba8ba, before 7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f affected from b0eed085903e7758532696d64397901a75bba8ba, before 8bb7170c5a055ea17c6857c256ee73c10ff872eb
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 6.1.142 up to and including 6.1.* unaffected from 6.6.94 up to and including 6.6.* unaffected from 6.12.34 up to and including 6.12.* unaffected from 6.15.3 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38158 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38158
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38158
trivy image --scanners vuln IMAGE | grep CVE-2025-38158
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/809a9c10274e1bcf6d05f1c0341459a425a4f05f git.kernel.org
- https://git.kernel.org/stable/c/f0423873e7aeb69cb68f4e8fa3827832e7b037ba git.kernel.org
- https://git.kernel.org/stable/c/884a76e813178778d271fea59783763d32bb7e72 git.kernel.org
- https://git.kernel.org/stable/c/7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f git.kernel.org
- https://git.kernel.org/stable/c/8bb7170c5a055ea17c6857c256ee73c10ff872eb git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
Source: the record CVE-2025-38158 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse