{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-50149",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-10-21T19:36:19.959Z",
        "datePublished": "2024-11-07T09:31:25.885Z",
        "dateUpdated": "2026-08-05T11:42:02.810Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:42:02.810Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: Don't free job in TDR\n\nFreeing job in TDR is not safe as TDR can pass the run_job thread\nresulting in UAF. It is only safe for free job to naturally be called by\nthe scheduler. Rather free job in TDR, add to pending list.\n\n(cherry picked from commit ea2f6a77d0c40d97f4a4dc93fee4afe15d94926d)"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The vulnerable path is reached only through DRM ioctls (`XE_EXEC_QUEUE_CREATE`, `XE_EXEC`, `XE_EXEC_QUEUE_DESTROY`) on a local `/dev/dri/renderD*` node of an Intel Xe GPU. No network or adjacent-network exposure exists.\nAC:L - The attacker controls both sides of the race — GPU batch duration determines when the fence signals, GuC CT saturation stalls `run_job()` past the TDR deadline, and the triggering \"exec queue closed immediately after last fence signaled\" pattern is described by the fix author as *common* — and it can be retried in a tight loop across many exec queues until won.\nPR:L - All required ioctls are marked `DRM_RENDER_ALLOW` with no `DRM_AUTH` or capability check, so any unprivileged local user (or sandboxed/containerized process such as a browser GPU process) holding an fd on the render node can trigger it.\nUI:N - The attacking process performs every step itself — create exec queue, submit a job with attacker-chosen execution time, close the queue — with no victim action required.\nS:U - The freed `xe_sched_job` and all subsequent accesses are kernel objects within the same security authority; no VM, IOMMU, or sandbox boundary is crossed by the corruption itself.\nC:H - The job is freed into a mergeable slab with no RCU delay, and the run_job worker then reads `sched_job->s_fence`, `job->fence`, and `job->q` from the reallocated memory, allowing an attacker who sprays the freed slot to steer dereferences and leak arbitrary kernel memory.\nI:H - After the free, `dma_fence_add_callback(fence, &sched_job->cb, ...)` writes list pointers into the freed object and `drm_sched_job_done()`/`dma_fence_signal()` traverse callback lists and invoke `dma_fence_ops`/`dma_fence_cb->func` pointers, giving a heap-spray-driven write and control-flow hijack primitive.\nA:H - The use-after-free corrupts the DRM scheduler's pending list and fence callback chains, reliably producing KASAN splats, oopses, and kernel panics; the buggy path additionally loses the job free, leaking memory and disturbing GPU submission state."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/xe/xe_guc_submit.c"
                    ],
                    "versions": [
                        {
                            "version": "e275d61c5f3ffc250b2a9601d36fbd11b4db774b",
                            "lessThan": "be8fe75e57f8fa3f87e3b1c283cc7cd9f9b80867",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e275d61c5f3ffc250b2a9601d36fbd11b4db774b",
                            "lessThan": "82926f52d7a09c65d916c0ef8d4305fc95d68c0c",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/xe/xe_guc_submit.c"
                    ],
                    "versions": [
                        {
                            "version": "6.10",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.10",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11.6",
                            "lessThanOrEqual": "6.11.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.10",
                                    "versionEndExcluding": "6.11.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.10",
                                    "versionEndExcluding": "6.12"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/be8fe75e57f8fa3f87e3b1c283cc7cd9f9b80867"
                },
                {
                    "url": "https://git.kernel.org/stable/c/82926f52d7a09c65d916c0ef8d4305fc95d68c0c"
                }
            ],
            "title": "drm/xe: Don't free job in TDR",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "cvssV3_1": {
                            "scope": "UNCHANGED",
                            "version": "3.1",
                            "baseScore": 7.8,
                            "attackVector": "LOCAL",
                            "baseSeverity": "HIGH",
                            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                            "integrityImpact": "HIGH",
                            "userInteraction": "NONE",
                            "attackComplexity": "LOW",
                            "availabilityImpact": "HIGH",
                            "privilegesRequired": "LOW",
                            "confidentialityImpact": "HIGH"
                        }
                    },
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-50149",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-12-11T14:25:51.665392Z"
                            }
                        }
                    }
                ],
                "problemTypes": [
                    {
                        "descriptions": [
                            {
                                "lang": "en",
                                "type": "CWE",
                                "cweId": "CWE-416",
                                "description": "CWE-416 Use After Free"
                            }
                        ]
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-12-11T14:58:33.233Z"
                }
            }
        ]
    }
}