hisi_acc_vfio_pci: fix XQE dma address error
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.142, 6.12.34, 6.15.3, 6.6.94
- CVEs
- CVE-2025-38158
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 22:18 UTC · Revision 1
Source evidence
hisi_acc_vfio_pci: fix XQE dma address error
core-osv · Original sourcePublished 3 Jul 2025, 08:36 UTC
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.
osv:CVE-2025-38158
Kernel
Fixed versions: 6.1.142, 6.6.94, 6.12.34, 6.15.3
Complete source record
{
"id": "ac8f5fb7780dea202484e8dd4ecb470adf1bfa74d86a0c70614f4515938040d5",
"url": "https://osv.dev/vulnerability/CVE-2025-38158",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "hisi_acc_vfio_pci: fix XQE dma address error",
"summary": "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.",
"evidence": "osv:CVE-2025-38158",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.142",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.94",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.34",
"evidence": "/affected/1/ranges"
},
{
"value": "6.15.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-38158",
"aliases": [
"CVE-2025-38158"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b0eed085903e7758532696d64397901a75bba8ba"
},
{
"fixed": "809a9c10274e1bcf6d05f1c0341459a425a4f05f"
},
{
"fixed": "f0423873e7aeb69cb68f4e8fa3827832e7b037ba"
},
{
"fixed": "884a76e813178778d271fea59783763d32bb7e72"
},
{
"fixed": "7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f"
},
{
"fixed": "8bb7170c5a055ea17c6857c256ee73c10ff872eb"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38158.json"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38158.json"
}
}
],
"modified": "2026-10-28T02:30:40.186894455Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/7710c883eb8cb5cf510ca47ec0e26c6cb7e94a4f",
"https://git.kernel.org/stable/c/809a9c10274e1bcf6d05f1c0341459a425a4f05f",
"https://git.kernel.org/stable/c/884a76e813178778d271fea59783763d32bb7e72",
"https://git.kernel.org/stable/c/8bb7170c5a055ea17c6857c256ee73c10ff872eb",
"https://git.kernel.org/stable/c/f0423873e7aeb69cb68f4e8fa3827832e7b037ba",
"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38158.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38158",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38158.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38158",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 507535,
"published_at": "2025-07-03T08:36:00.776+00:00"
}