CVE-2025-37746

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-37746
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37746.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-37746
Downstream
Published
2025-05-01T12:55:53Z
Modified
2025-10-22T10:51:08.712425Z
Summary
perf/dwc_pcie: fix duplicate pci_dev devices
Details

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

perf/dwcpcie: fix duplicate pcidev devices

During platformdeviceregister, wrongly using struct device pcidev as platformdata caused a kmemdup copy of pci_dev. Worse still, accessing the duplicated device leads to list corruption as its mutex content (e.g., list, magic) remains the same as the original.

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
af9597adc2f1e3609c67c9792a2469bb64e43ae9
Fixed
a71c6fc87b2b9905dc2e38887fe4122287216be9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
af9597adc2f1e3609c67c9792a2469bb64e43ae9
Fixed
7f35b429802a8065aa61e2a3f567089649f4d98e

Affected versions

v6.*

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-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.14.1
v6.14.2
v6.7
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f35b429802a8065aa61e2a3f567089649f4d98e",
        "id": "CVE-2025-37746-27ede996",
        "digest": {
            "function_hash": "59563091995028804253742999453886080269",
            "length": 528.0
        },
        "target": {
            "function": "dwc_pcie_register_dev",
            "file": "drivers/perf/dwc_pcie_pmu.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f35b429802a8065aa61e2a3f567089649f4d98e",
        "id": "CVE-2025-37746-3fb80539",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "2617246608274269434648196995331665238",
                "323644792152992113768482333639388912710",
                "277096340168729391600824188335621158774",
                "265357844369714010586765401543751923941",
                "255277958521837565607491488285685659056",
                "60113537747319163909191671326548283696",
                "314272700489792124186335041918026622388",
                "90880578711400501826624684244948672376",
                "161745814976451546848488677626146226440",
                "26541925333405030600899742180532419669",
                "51570573322532447720931681220336423488",
                "170204305285951686937790665127264381950",
                "205849577083514987954158709774718949411",
                "283816776191318880513579188100890289820",
                "49768200069695421389333162326879935673",
                "139000920141879870512013427362644579544",
                "5113619812815748739433441687822070157",
                "60090525896948772108405062477739544207",
                "261616276045259585991989917870165471455",
                "98380620147957175120028923538543632717",
                "264414011565904749844745656563899406743",
                "269736786106259689751241596379254046191"
            ]
        },
        "target": {
            "file": "drivers/perf/dwc_pcie_pmu.c"
        },
        "signature_type": "Line",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f35b429802a8065aa61e2a3f567089649f4d98e",
        "id": "CVE-2025-37746-42a6cf34",
        "digest": {
            "function_hash": "202959120386663224385525169029225844161",
            "length": 1502.0
        },
        "target": {
            "function": "dwc_pcie_pmu_probe",
            "file": "drivers/perf/dwc_pcie_pmu.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.14.3