CVE-2025-38158

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38158
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38158.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38158
Downstream
Related
Published
2025-07-03T08:36:00.776Z
Modified
2025-11-28T02:34:28.816303Z
Summary
hisi_acc_vfio_pci: fix XQE dma address error
Details

In the Linux kernel, the following vulnerability has been resolved:

hisiaccvfio_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38158.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b0eed085903e7758532696d64397901a75bba8ba
Fixed
809a9c10274e1bcf6d05f1c0341459a425a4f05f
Fixed
f0423873e7aeb69cb68f4e8fa3827832e7b037ba
Fixed
884a76e813178778d271fea59783763d32bb7e72
Fixed
7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f
Fixed
8bb7170c5a055ea17c6857c256ee73c10ff872eb

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
6.1.142
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.94
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.34
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.3