CVE-2025-38137

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38137
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38137.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38137
Downstream
Published
2025-07-03T08:35:39Z
Modified
2025-10-18T02:24:51.829659Z
Summary
PCI/pwrctrl: Cancel outstanding rescan work when unregistering
Details

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

PCI/pwrctrl: Cancel outstanding rescan work when unregistering

It's possible to trigger use-after-free here by:

(a) forcing rescanworkfunc() to take a long time and (b) utilizing a pwrctrl driver that may be unloaded for some reason

Cancel outstanding work to ensure it is finished before we allow our data structures to be cleaned up.

[bhelgaas: tidy commit log]

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
8f62819aaace77dd85037ae766eb767f8c4417ce
Fixed
b3ad6d23fec23fbef382ce9ea640c37446593cf5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8f62819aaace77dd85037ae766eb767f8c4417ce
Fixed
8b926f237743f020518162c62b93cb7107a2b5eb

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.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.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.15.1
v6.15.2

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "id": "CVE-2025-38137-11ad363c",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "315372292143444307474515911684298059344",
                "220023341050103792096299212393566401434",
                "208131264175167682736937828519704559179",
                "143716994572720152843696521766670167540"
            ]
        },
        "target": {
            "file": "drivers/pci/pwrctrl/core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3ad6d23fec23fbef382ce9ea640c37446593cf5",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "id": "CVE-2025-38137-366e3285",
        "deprecated": false,
        "digest": {
            "function_hash": "191869364251163288218007053722738065380",
            "length": 82.0
        },
        "target": {
            "function": "pci_pwrctrl_device_unset_ready",
            "file": "drivers/pci/pwrctrl/core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3ad6d23fec23fbef382ce9ea640c37446593cf5",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "id": "CVE-2025-38137-4abc61b2",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "315372292143444307474515911684298059344",
                "220023341050103792096299212393566401434",
                "208131264175167682736937828519704559179",
                "143716994572720152843696521766670167540"
            ]
        },
        "target": {
            "file": "drivers/pci/pwrctrl/core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8b926f237743f020518162c62b93cb7107a2b5eb",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "id": "CVE-2025-38137-dd646bef",
        "deprecated": false,
        "digest": {
            "function_hash": "191869364251163288218007053722738065380",
            "length": 82.0
        },
        "target": {
            "function": "pci_pwrctrl_device_unset_ready",
            "file": "drivers/pci/pwrctrl/core.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8b926f237743f020518162c62b93cb7107a2b5eb",
        "signature_type": "Function"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.15.3