CVE-2024-49943

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-49943
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49943.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-49943
Downstream
Related
Published
2024-10-21T18:02:01Z
Modified
2025-10-15T00:55:01.032520Z
Summary
drm/xe/guc_submit: add missing locking in wedged_fini
Details

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

drm/xe/gucsubmit: add missing locking in wedgedfini

Any non-wedged queue can have a zero refcount here and can be running concurrently with an async queue destroy, therefore dereferencing the queue ptr to check wedge status after the lookup can trigger UAF if queue is not wedged. Fix this by keeping the submission_state lock held around the check to postpone the free and make the check safe, before dropping again around the put() to avoid the deadlock.

(cherry picked from commit d28af0b6b9580b9f90c265a7da0315b0ad20bbfd)

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
8ed9aaae39f39130b7a3eb2726be05d7f64b344c
Fixed
d88f9bab7e62dd0dbe983fa70cf040042a60cc84
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8ed9aaae39f39130b7a3eb2726be05d7f64b344c
Fixed
790533e44bfc7af929842fccd9674c9f424d4627

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.11.1
v6.11.2
v6.12-rc1
v6.9
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d88f9bab7e62dd0dbe983fa70cf040042a60cc84",
        "signature_version": "v1",
        "target": {
            "function": "guc_submit_wedged_fini",
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "digest": {
            "function_hash": "180120439383690888317607355514386816448",
            "length": 217.0
        },
        "id": "CVE-2024-49943-20151b00"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@790533e44bfc7af929842fccd9674c9f424d4627",
        "signature_version": "v1",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "133213004026673496883429124832754483812",
                "149913796174034761148503942871981184777",
                "271373568832299202234585476756354287349",
                "81874319737968083632003207008281048227",
                "9080089171815551908142761249300225531",
                "104735100421625057990549434432988095814"
            ]
        },
        "id": "CVE-2024-49943-59147b91"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@790533e44bfc7af929842fccd9674c9f424d4627",
        "signature_version": "v1",
        "target": {
            "function": "guc_submit_wedged_fini",
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "digest": {
            "function_hash": "180120439383690888317607355514386816448",
            "length": 217.0
        },
        "id": "CVE-2024-49943-9a2a87bd"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d88f9bab7e62dd0dbe983fa70cf040042a60cc84",
        "signature_version": "v1",
        "target": {
            "file": "drivers/gpu/drm/xe/xe_guc_submit.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "133213004026673496883429124832754483812",
                "149913796174034761148503942871981184777",
                "271373568832299202234585476756354287349",
                "81874319737968083632003207008281048227",
                "9080089171815551908142761249300225531",
                "104735100421625057990549434432988095814"
            ]
        },
        "id": "CVE-2024-49943-e6292972"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.11.3