CVE-2023-52453

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52453
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52453.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52453
Downstream
Related
Published
2024-02-23T14:46:17Z
Modified
2025-10-08T15:23:19.486896Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume
Details

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

hisiaccvfio_pci: Update migration data pointer correctly on saving/resume

When the optional PRE_COPY support was added to speed up the device compatibility check, it failed to update the saving/resuming data pointers based on the fd offset. This results in migration data corruption and when the device gets started on the destination the following error is reported in some cases,

[ 478.907684] arm-smmu-v3 arm-smmu-v3.2.auto: event 0x10 received: [ 478.913691] arm-smmu-v3 arm-smmu-v3.2.auto: 0x0000310200000010 [ 478.919603] arm-smmu-v3 arm-smmu-v3.2.auto: 0x000002088000007f [ 478.925515] arm-smmu-v3 arm-smmu-v3.2.auto: 0x0000000000000000 [ 478.931425] arm-smmu-v3 arm-smmu-v3.2.auto: 0x0000000000000000 [ 478.947552] hisizip 0000:31:00.0: qmaxirresp [error status=0x1] found [ 478.955930] hisizip 0000:31:00.0: qmdbtimeout [error status=0x400] found [ 478.955944] hisi_zip 0000:31:00.0: qm sq doorbell timeout in function 2

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
d9a871e4a143047d1d84a606772af319f11516f9
Fixed
45f80b2f230df10600e6fa1b83b28bf1c334185e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9a871e4a143047d1d84a606772af319f11516f9
Fixed
6bda81e24a35a856f58e6a5786de579b07371603
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9a871e4a143047d1d84a606772af319f11516f9
Fixed
be12ad45e15b5ee0e2526a50266ba1d295d26a88

Affected versions

v6.*

v6.1
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.10
v6.6.11
v6.6.12
v6.6.13
v6.6.2
v6.6.3
v6.6.4
v6.6.5
v6.6.6
v6.6.7
v6.6.8
v6.6.9
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.7.1

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "digest": {
                "length": 658.0,
                "function_hash": "254315045288130778602815299542165967235"
            },
            "id": "CVE-2023-52453-0058d201",
            "deprecated": false,
            "target": {
                "file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
                "function": "hisi_acc_vf_save_read"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be12ad45e15b5ee0e2526a50266ba1d295d26a88"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 756.0,
                "function_hash": "120431791364578788357950648873389677113"
            },
            "id": "CVE-2023-52453-2b4b151d",
            "deprecated": false,
            "target": {
                "file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
                "function": "hisi_acc_vf_resume_write"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45f80b2f230df10600e6fa1b83b28bf1c334185e"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 658.0,
                "function_hash": "254315045288130778602815299542165967235"
            },
            "id": "CVE-2023-52453-4fa51494",
            "deprecated": false,
            "target": {
                "file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
                "function": "hisi_acc_vf_save_read"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bda81e24a35a856f58e6a5786de579b07371603"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 658.0,
                "function_hash": "254315045288130778602815299542165967235"
            },
            "id": "CVE-2023-52453-5521e769",
            "deprecated": false,
            "target": {
                "file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
                "function": "hisi_acc_vf_save_read"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45f80b2f230df10600e6fa1b83b28bf1c334185e"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 756.0,
                "function_hash": "120431791364578788357950648873389677113"
            },
            "id": "CVE-2023-52453-771bc759",
            "deprecated": false,
            "target": {
                "file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
                "function": "hisi_acc_vf_resume_write"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be12ad45e15b5ee0e2526a50266ba1d295d26a88"
        },
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "74247700064494045600094889711439563800",
                    "333861539706375762293344897396710072142",
                    "57697649184908168181315581273159785486",
                    "67289514202278999165638286196609706780",
                    "319432072050172162250708989393499589920",
                    "89135790991187968255017639117386576611",
                    "53610902608233088648258989357795503100",
                    "291288560818483611025989830324235033007",
                    "34597283627082523877467688991830009498",
                    "135079734566145547395593859480195153442",
                    "116433890473815531841444451081613300084",
                    "237798081886490042430401796431799630556"
                ]
            },
            "id": "CVE-2023-52453-946c17b5",
            "deprecated": false,
            "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@45f80b2f230df10600e6fa1b83b28bf1c334185e"
        },
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "74247700064494045600094889711439563800",
                    "333861539706375762293344897396710072142",
                    "57697649184908168181315581273159785486",
                    "67289514202278999165638286196609706780",
                    "319432072050172162250708989393499589920",
                    "89135790991187968255017639117386576611",
                    "53610902608233088648258989357795503100",
                    "291288560818483611025989830324235033007",
                    "34597283627082523877467688991830009498",
                    "135079734566145547395593859480195153442",
                    "116433890473815531841444451081613300084",
                    "237798081886490042430401796431799630556"
                ]
            },
            "id": "CVE-2023-52453-b25911d2",
            "deprecated": false,
            "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@6bda81e24a35a856f58e6a5786de579b07371603"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 756.0,
                "function_hash": "120431791364578788357950648873389677113"
            },
            "id": "CVE-2023-52453-c2a7e250",
            "deprecated": false,
            "target": {
                "file": "drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c",
                "function": "hisi_acc_vf_resume_write"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bda81e24a35a856f58e6a5786de579b07371603"
        },
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "74247700064494045600094889711439563800",
                    "333861539706375762293344897396710072142",
                    "57697649184908168181315581273159785486",
                    "67289514202278999165638286196609706780",
                    "319432072050172162250708989393499589920",
                    "89135790991187968255017639117386576611",
                    "53610902608233088648258989357795503100",
                    "291288560818483611025989830324235033007",
                    "34597283627082523877467688991830009498",
                    "135079734566145547395593859480195153442",
                    "116433890473815531841444451081613300084",
                    "237798081886490042430401796431799630556"
                ]
            },
            "id": "CVE-2023-52453-d7e8c0db",
            "deprecated": false,
            "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@be12ad45e15b5ee0e2526a50266ba1d295d26a88"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.14
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.2