CVE-2025-40136

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40136
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40136.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40136
Downstream
Published
2025-11-12T10:23:23Z
Modified
2025-11-12T20:12:54.989602Z
Summary
crypto: hisilicon/qm - request reserved interrupt for virtual function
Details

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

crypto: hisilicon/qm - request reserved interrupt for virtual function

The device interrupt vector 3 is an error interrupt for physical function and a reserved interrupt for virtual function. However, the driver has not registered the reserved interrupt for virtual function. When allocating interrupts, the number of interrupts is allocated based on powers of two, which includes this interrupt. When the system enables GICv4 and the virtual function passthrough to the virtual machine, releasing the interrupt in the driver triggers a warning.

The WARNING report is: WARNING: CPU: 62 PID: 14889 at arch/arm64/kvm/vgic/vgic-its.c:852 itsfreeite+0x94/0xb4

Therefore, register a reserved interrupt for VF and set the IRQFNOAUTOEN flag to avoid that warning.

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
3536cc55cadaf2a03241915f9cfdaf6cd073e4fe
Fixed
854da2b0df1654d63963d587b12fec6068d89643
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3536cc55cadaf2a03241915f9cfdaf6cd073e4fe
Fixed
9228facb308157ac0bdd264b873187896f7a9c7a

Affected versions

v6.*

v6.0
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11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

Database specific

vanir_signatures

[
    {
        "digest": {
            "length": 362.0,
            "function_hash": "181940669848084964221643437928059354793"
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c",
            "function": "qm_unregister_abnormal_irq"
        },
        "signature_type": "Function",
        "id": "CVE-2025-40136-1b9f1bf3",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@854da2b0df1654d63963d587b12fec6068d89643"
    },
    {
        "digest": {
            "length": 787.0,
            "function_hash": "189880323802288806886051319050818988046"
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c",
            "function": "hisi_qm_pci_init"
        },
        "signature_type": "Function",
        "id": "CVE-2025-40136-1d071427",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9228facb308157ac0bdd264b873187896f7a9c7a"
    },
    {
        "digest": {
            "length": 787.0,
            "function_hash": "189880323802288806886051319050818988046"
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c",
            "function": "hisi_qm_pci_init"
        },
        "signature_type": "Function",
        "id": "CVE-2025-40136-7ce1fc4b",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@854da2b0df1654d63963d587b12fec6068d89643"
    },
    {
        "digest": {
            "length": 538.0,
            "function_hash": "105810052486256968683609962693103427564"
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c",
            "function": "qm_register_abnormal_irq"
        },
        "signature_type": "Function",
        "id": "CVE-2025-40136-8e7a3383",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@854da2b0df1654d63963d587b12fec6068d89643"
    },
    {
        "digest": {
            "length": 362.0,
            "function_hash": "181940669848084964221643437928059354793"
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c",
            "function": "qm_unregister_abnormal_irq"
        },
        "signature_type": "Function",
        "id": "CVE-2025-40136-926a7851",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9228facb308157ac0bdd264b873187896f7a9c7a"
    },
    {
        "digest": {
            "line_hashes": [
                "291207117683238404502774627529070576722",
                "73715513858082967332360207107383270712",
                "251904969984758954848076212202291401244",
                "329101621289766347617866855788229425499",
                "289986899453400862038932748104075715260",
                "71086007080046070446743630978481545047",
                "226173532499954588038320730318166489282",
                "79086183888171312659357557541209041206",
                "230045704628909857350624177871417942079",
                "315349407754816940553123242016613347504",
                "172635006647594872835491381379528122184",
                "122479623290323448161242663588315468923",
                "329955034920684448203614936165120720995",
                "145027702263378476850746775755193208367",
                "315294684556623250172613684257430581667",
                "79774802672712366812381956941173630469",
                "200557196851630532025890464750007829513",
                "12309579300352255714691855122434333986",
                "65166052768607978360413135219706171827",
                "77652749655645943936296343847009552991",
                "70644952303729817347244747127483060575",
                "63460589185197655008596038941543708284",
                "83301218461292862984041774161754402302"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c"
        },
        "signature_type": "Line",
        "id": "CVE-2025-40136-b88b62ec",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@854da2b0df1654d63963d587b12fec6068d89643"
    },
    {
        "digest": {
            "length": 538.0,
            "function_hash": "105810052486256968683609962693103427564"
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c",
            "function": "qm_register_abnormal_irq"
        },
        "signature_type": "Function",
        "id": "CVE-2025-40136-cb0aba95",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9228facb308157ac0bdd264b873187896f7a9c7a"
    },
    {
        "digest": {
            "line_hashes": [
                "291207117683238404502774627529070576722",
                "73715513858082967332360207107383270712",
                "251904969984758954848076212202291401244",
                "329101621289766347617866855788229425499",
                "289986899453400862038932748104075715260",
                "71086007080046070446743630978481545047",
                "226173532499954588038320730318166489282",
                "79086183888171312659357557541209041206",
                "230045704628909857350624177871417942079",
                "315349407754816940553123242016613347504",
                "172635006647594872835491381379528122184",
                "122479623290323448161242663588315468923",
                "329955034920684448203614936165120720995",
                "145027702263378476850746775755193208367",
                "315294684556623250172613684257430581667",
                "79774802672712366812381956941173630469",
                "200557196851630532025890464750007829513",
                "12309579300352255714691855122434333986",
                "65166052768607978360413135219706171827",
                "77652749655645943936296343847009552991",
                "70644952303729817347244747127483060575",
                "63460589185197655008596038941543708284",
                "83301218461292862984041774161754402302"
            ],
            "threshold": 0.9
        },
        "target": {
            "file": "drivers/crypto/hisilicon/qm.c"
        },
        "signature_type": "Line",
        "id": "CVE-2025-40136-ee018ed2",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9228facb308157ac0bdd264b873187896f7a9c7a"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.17.3