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.
[
{
"digest": {
"function_hash": "190205291192536443134623493206677447244",
"length": 1272.0
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
"function": "vf_qm_check_match"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0423873e7aeb69cb68f4e8fa3827832e7b037ba",
"signature_version": "v1",
"id": "CVE-2025-38158-102c04b6",
"deprecated": false
},
{
"digest": {
"function_hash": "188767631804390342098798675361759695622",
"length": 583.0
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
"function": "vf_qm_get_match_data"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb7170c5a055ea17c6857c256ee73c10ff872eb",
"signature_version": "v1",
"id": "CVE-2025-38158-201e7e5c",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"237526997997786444701385132454558718650",
"93241333437528481909133394121230193876",
"36080975724539772629998980713980483420",
"95140911125762670846085757196594234475",
"244032722783151042841505193331509830739",
"159121863660967877560596136804805647365",
"277743442232166905556789459386588499971",
"211483360020519626746893801163105461189",
"159486506883825875817890605504786087336",
"167113410234544946103321511484787256057",
"217828675711927354062530596447197710840",
"131959807577919136487425713554795106251",
"59923008100338839027671355095958779963",
"51748623793359350011102303560183556703",
"244237375537669264462037648739424600548",
"216947890462666982707453288713142966828",
"308164805815320903419015500193907035917",
"196343917716380195824848069863183393607",
"18981973657461461260284807338954343988",
"35757573539116584934004778060012639459"
]
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0423873e7aeb69cb68f4e8fa3827832e7b037ba",
"signature_version": "v1",
"id": "CVE-2025-38158-3413a662",
"deprecated": false
},
{
"digest": {
"function_hash": "319632719061413554752767946765871249911",
"length": 722.0
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
"function": "vf_qm_read_data"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb7170c5a055ea17c6857c256ee73c10ff872eb",
"signature_version": "v1",
"id": "CVE-2025-38158-4d42833b",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"87983825024484097271561199555952364029",
"284011397147667948544944285391575982797",
"118250088151968269420711504733984631324",
"34283831779193543030235995082382085038",
"126877689075284843304555877986009500511",
"163375819105963921902903016428710228001",
"185741939668917576080234781285505266796"
]
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.h"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0423873e7aeb69cb68f4e8fa3827832e7b037ba",
"signature_version": "v1",
"id": "CVE-2025-38158-5c791e8f",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"87983825024484097271561199555952364029",
"284011397147667948544944285391575982797",
"118250088151968269420711504733984631324",
"34283831779193543030235995082382085038",
"126877689075284843304555877986009500511",
"163375819105963921902903016428710228001",
"185741939668917576080234781285505266796"
]
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.h"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb7170c5a055ea17c6857c256ee73c10ff872eb",
"signature_version": "v1",
"id": "CVE-2025-38158-8bbd5b00",
"deprecated": false
},
{
"digest": {
"function_hash": "190205291192536443134623493206677447244",
"length": 1272.0
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
"function": "vf_qm_check_match"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb7170c5a055ea17c6857c256ee73c10ff872eb",
"signature_version": "v1",
"id": "CVE-2025-38158-bcd722ab",
"deprecated": false
},
{
"digest": {
"function_hash": "31381293937880091720032702497902472572",
"length": 1149.0
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
"function": "vf_qm_state_save"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0423873e7aeb69cb68f4e8fa3827832e7b037ba",
"signature_version": "v1",
"id": "CVE-2025-38158-dc369774",
"deprecated": false
},
{
"digest": {
"function_hash": "188767631804390342098798675361759695622",
"length": 583.0
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
"function": "vf_qm_get_match_data"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0423873e7aeb69cb68f4e8fa3827832e7b037ba",
"signature_version": "v1",
"id": "CVE-2025-38158-ddd08508",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"237526997997786444701385132454558718650",
"93241333437528481909133394121230193876",
"36080975724539772629998980713980483420",
"95140911125762670846085757196594234475",
"244032722783151042841505193331509830739",
"159121863660967877560596136804805647365",
"277743442232166905556789459386588499971",
"211483360020519626746893801163105461189",
"159486506883825875817890605504786087336",
"167113410234544946103321511484787256057",
"217828675711927354062530596447197710840",
"131959807577919136487425713554795106251",
"59923008100338839027671355095958779963",
"51748623793359350011102303560183556703",
"244237375537669264462037648739424600548",
"216947890462666982707453288713142966828",
"308164805815320903419015500193907035917",
"196343917716380195824848069863183393607",
"18981973657461461260284807338954343988",
"35757573539116584934004778060012639459"
]
},
"target": {
"file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb7170c5a055ea17c6857c256ee73c10ff872eb",
"signature_version": "v1",
"id": "CVE-2025-38158-f145f1bf",
"deprecated": false
}
]