CVE-2025-37981

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37981
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-37981.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-37981
Downstream
Published
2025-05-20T16:58:23Z
Modified
2025-10-18T01:33:52.495027Z
Summary
scsi: smartpqi: Use is_kdump_kernel() to check for kdump
Details

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

scsi: smartpqi: Use iskdumpkernel() to check for kdump

The smartpqi driver checks the resetdevices variable to determine whether special adjustments need to be made for kdump. This has the effect that after a regular kexec reboot, some driver parameters such as maxtransfer_size are much lower than usual. More importantly, kexec reboot tests have revealed memory corruption caused by the driver log being written to system memory after a kexec.

Fix this by testing iskdumpkernel() rather than reset_devices where appropriate.

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
058311b72f54890de824b063feb603942269b732
Fixed
7cc670e8ebaa5241dd99c0ad75eceb8f8f64f607
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
058311b72f54890de824b063feb603942269b732
Fixed
ebf673c76ce91e612a882dfaa9a3824962994aae
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
058311b72f54890de824b063feb603942269b732
Fixed
a2d5a0072235a69749ceb04c1a26dc75df66a31a

Affected versions

v6.*

v6.11
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.2
v6.12.20
v6.12.21
v6.12.22
v6.12.23
v6.12.24
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.14.1
v6.14.2
v6.14.3

Database specific

vanir_signatures

[
    {
        "id": "CVE-2025-37981-20a42fe2",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_calculate_io_resources"
        },
        "digest": {
            "function_hash": "62357038110022194030664737848265040611",
            "length": 709.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7cc670e8ebaa5241dd99c0ad75eceb8f8f64f607"
    },
    {
        "id": "CVE-2025-37981-250c0411",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c"
        },
        "digest": {
            "line_hashes": [
                "168595102499609137355680383455557724822",
                "260379709207330886031438349870881525234",
                "23898111699927422101925735237151312107",
                "316825264961195059632736870669491967340",
                "176238406820041755607069057589576201222",
                "209478196572770812328741961442404538158",
                "227945288911393475127470869876321828358",
                "106620770677214754999398255858768959542",
                "33985104060185475478432835867054904608",
                "204458397090699187143680738129323275878",
                "327408578892247568261447488200512018943",
                "112197134675738772047423376436662623976",
                "268164742238225805467209430697154052755",
                "266824215777089661164802319764544346216",
                "284396065264788346233665756894466195801",
                "208606373081320023833709858158481915139",
                "224039708614624317491176832504152074540",
                "88006184415497197658725837113893124004",
                "99261000676903998242984367566291561867",
                "319575957578993060387089237450122081648",
                "276803177893838239590294083182756369863",
                "276854439035645421243456383392992999383",
                "25000055166527098785664599189655839391",
                "69596775396419000983547578491916116035",
                "314249807348577564180603417250373276077",
                "196308080993581081037993043234706875871",
                "2622150462345770975632296976437876446",
                "217443535774794021773995348211964526876",
                "199816098382785374706791338122713697966"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ebf673c76ce91e612a882dfaa9a3824962994aae"
    },
    {
        "id": "CVE-2025-37981-35859f05",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_calculate_io_resources"
        },
        "digest": {
            "function_hash": "62357038110022194030664737848265040611",
            "length": 709.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ebf673c76ce91e612a882dfaa9a3824962994aae"
    },
    {
        "id": "CVE-2025-37981-3ca3c8b7",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c"
        },
        "digest": {
            "line_hashes": [
                "168595102499609137355680383455557724822",
                "260379709207330886031438349870881525234",
                "23898111699927422101925735237151312107",
                "316825264961195059632736870669491967340",
                "176238406820041755607069057589576201222",
                "209478196572770812328741961442404538158",
                "227945288911393475127470869876321828358",
                "106620770677214754999398255858768959542",
                "33985104060185475478432835867054904608",
                "204458397090699187143680738129323275878",
                "327408578892247568261447488200512018943",
                "112197134675738772047423376436662623976",
                "268164742238225805467209430697154052755",
                "266824215777089661164802319764544346216",
                "284396065264788346233665756894466195801",
                "208606373081320023833709858158481915139",
                "224039708614624317491176832504152074540",
                "88006184415497197658725837113893124004",
                "99261000676903998242984367566291561867",
                "319575957578993060387089237450122081648",
                "276803177893838239590294083182756369863",
                "276854439035645421243456383392992999383",
                "25000055166527098785664599189655839391",
                "69596775396419000983547578491916116035",
                "314249807348577564180603417250373276077",
                "196308080993581081037993043234706875871",
                "2622150462345770975632296976437876446",
                "217443535774794021773995348211964526876",
                "199816098382785374706791338122713697966"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7cc670e8ebaa5241dd99c0ad75eceb8f8f64f607"
    },
    {
        "id": "CVE-2025-37981-69597e97",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_ctrl_init"
        },
        "digest": {
            "function_hash": "260273025871329501861826843467244993178",
            "length": 4263.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ebf673c76ce91e612a882dfaa9a3824962994aae"
    },
    {
        "id": "CVE-2025-37981-7a0a2d8d",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_ctrl_init"
        },
        "digest": {
            "function_hash": "260273025871329501861826843467244993178",
            "length": 4263.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2d5a0072235a69749ceb04c1a26dc75df66a31a"
    },
    {
        "id": "CVE-2025-37981-7f0437ff",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_calculate_queue_resources"
        },
        "digest": {
            "function_hash": "311356153571967138740808690174890368099",
            "length": 1156.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7cc670e8ebaa5241dd99c0ad75eceb8f8f64f607"
    },
    {
        "id": "CVE-2025-37981-a4883c6d",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_calculate_io_resources"
        },
        "digest": {
            "function_hash": "62357038110022194030664737848265040611",
            "length": 709.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2d5a0072235a69749ceb04c1a26dc75df66a31a"
    },
    {
        "id": "CVE-2025-37981-ebec6208",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_ctrl_init"
        },
        "digest": {
            "function_hash": "260273025871329501861826843467244993178",
            "length": 4263.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7cc670e8ebaa5241dd99c0ad75eceb8f8f64f607"
    },
    {
        "id": "CVE-2025-37981-eca68910",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_calculate_queue_resources"
        },
        "digest": {
            "function_hash": "311356153571967138740808690174890368099",
            "length": 1156.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ebf673c76ce91e612a882dfaa9a3824962994aae"
    },
    {
        "id": "CVE-2025-37981-fd8c74a9",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c",
            "function": "pqi_calculate_queue_resources"
        },
        "digest": {
            "function_hash": "311356153571967138740808690174890368099",
            "length": 1156.0
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2d5a0072235a69749ceb04c1a26dc75df66a31a"
    },
    {
        "id": "CVE-2025-37981-fda6edc9",
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "drivers/scsi/smartpqi/smartpqi_init.c"
        },
        "digest": {
            "line_hashes": [
                "168595102499609137355680383455557724822",
                "260379709207330886031438349870881525234",
                "23898111699927422101925735237151312107",
                "316825264961195059632736870669491967340",
                "176238406820041755607069057589576201222",
                "209478196572770812328741961442404538158",
                "227945288911393475127470869876321828358",
                "106620770677214754999398255858768959542",
                "33985104060185475478432835867054904608",
                "204458397090699187143680738129323275878",
                "327408578892247568261447488200512018943",
                "112197134675738772047423376436662623976",
                "268164742238225805467209430697154052755",
                "266824215777089661164802319764544346216",
                "284396065264788346233665756894466195801",
                "208606373081320023833709858158481915139",
                "224039708614624317491176832504152074540",
                "88006184415497197658725837113893124004",
                "99261000676903998242984367566291561867",
                "319575957578993060387089237450122081648",
                "276803177893838239590294083182756369863",
                "276854439035645421243456383392992999383",
                "25000055166527098785664599189655839391",
                "69596775396419000983547578491916116035",
                "314249807348577564180603417250373276077",
                "196308080993581081037993043234706875871",
                "2622150462345770975632296976437876446",
                "217443535774794021773995348211964526876",
                "199816098382785374706791338122713697966"
            ],
            "threshold": 0.9
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2d5a0072235a69749ceb04c1a26dc75df66a31a"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.25
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.4