CVE-2025-38353

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38353
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38353.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38353
Downstream
Related
Published
2025-07-25T12:47:25Z
Modified
2025-10-18T03:44:44.293894Z
Summary
drm/xe: Fix taking invalid lock on wedge
Details

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

drm/xe: Fix taking invalid lock on wedge

If device wedges on e.g. GuC upload, the submission is not yet enabled and the state is not even initialized. Protect the wedge call so it does nothing in this case. It fixes the following splat:

[] xe 0000:bf:00.0: [drm] device wedged, needs recovery
[] ------------[ cut here ]------------
[] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
[] WARNING: CPU: 48 PID: 312 at kernel/locking/mutex.c:564 __mutex_lock+0x8a1/0xe60
...
[] RIP: 0010:__mutex_lock+0x8a1/0xe60
[]  mutex_lock_nested+0x1b/0x30
[]  xe_guc_submit_wedge+0x80/0x2b0 [xe]
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
dd08ebf6c3525a7ea2186e636df064ea47281987
Fixed
a6d81b2d7037ef36163ad16459ed3fd17cb1b596
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dd08ebf6c3525a7ea2186e636df064ea47281987
Fixed
20eec7018e132a023f84ccbdf56b6c5b73d3094f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dd08ebf6c3525a7ea2186e636df064ea47281987
Fixed
1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d

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.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.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
v6.15.3
v6.15.4
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

[
    {
        "signature_type": "Line",
        "id": "CVE-2025-38353-06bf4d55",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_types.h"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "176367917451052019795346619779272027721",
                "192134114295070644930004646847140015550",
                "243047994000148959331856964867819931843",
                "49287321508476245804979154671804253148"
            ]
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38353-1fa91bc2",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_types.h"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6d81b2d7037ef36163ad16459ed3fd17cb1b596",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "176367917451052019795346619779272027721",
                "192134114295070644930004646847140015550",
                "243047994000148959331856964867819931843",
                "49287321508476245804979154671804253148"
            ]
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38353-30a992ac",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6d81b2d7037ef36163ad16459ed3fd17cb1b596",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "78986327377411830002616635763639301042",
                "313460422509418603645115371189017319388",
                "208750006990799877795608587532877092630",
                "45697117209037727386618249107974760667",
                "91091224600260076824976307695713486135",
                "58208448147810463024655747867858573757"
            ]
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38353-3d4bf289",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_types.h"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@20eec7018e132a023f84ccbdf56b6c5b73d3094f",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "176367917451052019795346619779272027721",
                "192134114295070644930004646847140015550",
                "243047994000148959331856964867819931843",
                "49287321508476245804979154671804253148"
            ]
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38353-74dfe40d",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "78986327377411830002616635763639301042",
                "313460422509418603645115371189017319388",
                "208750006990799877795608587532877092630",
                "45697117209037727386618249107974760667",
                "91091224600260076824976307695713486135",
                "58208448147810463024655747867858573757"
            ]
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38353-7579c19a",
        "target": {
            "function": "xe_guc_submit_init",
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@20eec7018e132a023f84ccbdf56b6c5b73d3094f",
        "digest": {
            "function_hash": "125542658581198014598609089712452511566",
            "length": 568.0
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38353-7a1cd637",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@20eec7018e132a023f84ccbdf56b6c5b73d3094f",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "78986327377411830002616635763639301042",
                "313460422509418603645115371189017319388",
                "208750006990799877795608587532877092630",
                "45697117209037727386618249107974760667",
                "91091224600260076824976307695713486135",
                "58208448147810463024655747867858573757"
            ]
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38353-804211da",
        "target": {
            "function": "xe_guc_submit_init",
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d",
        "digest": {
            "function_hash": "125542658581198014598609089712452511566",
            "length": 568.0
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38353-b3642547",
        "target": {
            "function": "xe_guc_submit_init",
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6d81b2d7037ef36163ad16459ed3fd17cb1b596",
        "digest": {
            "function_hash": "125542658581198014598609089712452511566",
            "length": 568.0
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.12.36
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.5