CVE-2025-40177

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40177
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40177.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40177
Downstream
Published
2025-11-12T10:53:50Z
Modified
2025-11-12T20:31:15.020008Z
Summary
accel/qaic: Fix bootlog initialization ordering
Details

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

accel/qaic: Fix bootlog initialization ordering

As soon as we queue MHI buffers to receive the bootlog from the device, we could be receiving data. Therefore all the resources needed to process that data need to be setup prior to queuing the buffers.

We currently initialize some of the resources after queuing the buffers which creates a race between the probe() and any data that comes back from the device. If the uninitialized resources are accessed, we could see page faults.

Fix the init ordering to close the race.

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
5f8df5c6def641c164ed1b673d47a41fdd0013f8
Fixed
646868e6962b14e25ae7462fdd1fb061b40c1f16
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5f8df5c6def641c164ed1b673d47a41fdd0013f8
Fixed
48814afc7372f96a9584125c8508dffc88d1d378
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5f8df5c6def641c164ed1b673d47a41fdd0013f8
Fixed
fd6e385528d8f85993b7bfc6430576136bb14c65

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.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.25
v6.12.26
v6.12.27
v6.12.28
v6.12.29
v6.12.3
v6.12.30
v6.12.31
v6.12.32
v6.12.33
v6.12.34
v6.12.35
v6.12.36
v6.12.37
v6.12.38
v6.12.39
v6.12.4
v6.12.40
v6.12.41
v6.12.42
v6.12.43
v6.12.44
v6.12.45
v6.12.46
v6.12.47
v6.12.48
v6.12.49
v6.12.5
v6.12.50
v6.12.51
v6.12.52
v6.12.53
v6.12.54
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.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.17
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6
v6.17-rc7
v6.17.1
v6.17.2
v6.17.3
v6.17.4
v6.18-rc1
v6.9
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@48814afc7372f96a9584125c8508dffc88d1d378",
        "signature_type": "Function",
        "digest": {
            "length": 923.0,
            "function_hash": "176668293348373723461833192833615277668"
        },
        "deprecated": false,
        "target": {
            "function": "qaic_bootlog_mhi_probe",
            "file": "drivers/accel/qaic/qaic_debugfs.c"
        },
        "id": "CVE-2025-40177-2e373b09"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd6e385528d8f85993b7bfc6430576136bb14c65",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "47482416931003234485720532198280939173",
                "289933170595984265403090655679249862945",
                "216216517148481414086583064551431830308",
                "60301146739619563469822833691741966319",
                "139027584188114607855242573751861407074",
                "176820387654801252462672762707684073572",
                "404507698541799227427771205071150116",
                "39394288311993660424582329415932511954"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "drivers/accel/qaic/qaic_debugfs.c"
        },
        "id": "CVE-2025-40177-3199179d"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd6e385528d8f85993b7bfc6430576136bb14c65",
        "signature_type": "Function",
        "digest": {
            "length": 923.0,
            "function_hash": "176668293348373723461833192833615277668"
        },
        "deprecated": false,
        "target": {
            "function": "qaic_bootlog_mhi_probe",
            "file": "drivers/accel/qaic/qaic_debugfs.c"
        },
        "id": "CVE-2025-40177-51c89539"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@48814afc7372f96a9584125c8508dffc88d1d378",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "47482416931003234485720532198280939173",
                "289933170595984265403090655679249862945",
                "216216517148481414086583064551431830308",
                "60301146739619563469822833691741966319",
                "139027584188114607855242573751861407074",
                "176820387654801252462672762707684073572",
                "404507698541799227427771205071150116",
                "39394288311993660424582329415932511954"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "drivers/accel/qaic/qaic_debugfs.c"
        },
        "id": "CVE-2025-40177-c1bb1792"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@646868e6962b14e25ae7462fdd1fb061b40c1f16",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "47482416931003234485720532198280939173",
                "289933170595984265403090655679249862945",
                "216216517148481414086583064551431830308",
                "60301146739619563469822833691741966319",
                "139027584188114607855242573751861407074",
                "176820387654801252462672762707684073572",
                "404507698541799227427771205071150116",
                "39394288311993660424582329415932511954"
            ]
        },
        "deprecated": false,
        "target": {
            "file": "drivers/accel/qaic/qaic_debugfs.c"
        },
        "id": "CVE-2025-40177-fc7109ec"
    },
    {
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@646868e6962b14e25ae7462fdd1fb061b40c1f16",
        "signature_type": "Function",
        "digest": {
            "length": 956.0,
            "function_hash": "311570563483945088258116613212212059295"
        },
        "deprecated": false,
        "target": {
            "function": "qaic_bootlog_mhi_probe",
            "file": "drivers/accel/qaic/qaic_debugfs.c"
        },
        "id": "CVE-2025-40177-fcc7d47e"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.12.55
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.5