In the Linux kernel, the following vulnerability has been resolved:
drm/i915: Fix potential context UAFs
gemcontextregister() makes the context visible to userspace, and which point a separate thread can trigger the I915GEMCONTEXTDESTROY ioctl. So we need to ensure that nothing uses the ctx ptr after this. And we need to ensure that adding the ctx to the xarray is the *last* thing that gemcontext_register() does with the ctx pointer.
[tursulin: Stable and fixes tags add/tidy.] (cherry picked from commit bed4b455cf5374e68879be56971c1da563bcd90c)
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "303835379580933776984077286357731001226",
                "325018120283488283606211048896299459283",
                "330653940827253456629666559928780373375",
                "230112239404843828432161491666091321185",
                "51252072776268017135629145119763040656",
                "165295183657991639565351560676353327749",
                "179749029125351987795020591119260969465",
                "258089683258204757623507584567222765668",
                "284068741868589958378360282714125520939",
                "231971330196865485713148814088143340420",
                "315408427213716424421796116537139934768",
                "307296845230078745790990264002237408946",
                "193895719393561076964682934473902461086",
                "36415393522402763795173848724725436505",
                "89623400617391791957000034479089669786",
                "311221337201480114777397358337617316451",
                "40303682744882562074362907831043089725",
                "135456841445651213959164768275936275708",
                "319206633122674698733738391269774260461",
                "192402466084968649407405520644983038358"
            ]
        },
        "target": {
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-1166605d",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@afce71ff6daa9c0f852df0727fe32c6fb107f0fa",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "function_hash": "265349737743473571722933793098811342271",
            "length": 419.0
        },
        "target": {
            "function": "finalize_create_context_locked",
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-254fa456",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b696c627b3f56e173f7f70b8487d66da8ff22506",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "function_hash": "105460026207368286830221515729548637791",
            "length": 766.0
        },
        "target": {
            "function": "gem_context_register",
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-336023a7",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@afce71ff6daa9c0f852df0727fe32c6fb107f0fa",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "function_hash": "9133107416913063758792254237979368528",
            "length": 557.0
        },
        "target": {
            "function": "gem_context_register",
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-55c51f8c",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae278887193110dfeb857ea63e243a3851fbb0bc",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "function_hash": "105460026207368286830221515729548637791",
            "length": 766.0
        },
        "target": {
            "function": "gem_context_register",
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-8f1435c9",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b696c627b3f56e173f7f70b8487d66da8ff22506",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "303835379580933776984077286357731001226",
                "325018120283488283606211048896299459283",
                "330653940827253456629666559928780373375",
                "334383959040321716432395841382835883771",
                "51252072776268017135629145119763040656",
                "211384508255755866824339743599450241136",
                "195881885646298686941719960560479027890",
                "184192387107190945238812969415432565566",
                "231971330196865485713148814088143340420",
                "315408427213716424421796116537139934768",
                "307296845230078745790990264002237408946",
                "193895719393561076964682934473902461086",
                "36415393522402763795173848724725436505",
                "89623400617391791957000034479089669786",
                "55222445897510096079734594920808285567",
                "17933703053798312206712275707263843345",
                "293590755525365684986613900403946324644",
                "146565056772969558670171557235848984697",
                "192402466084968649407405520644983038358"
            ]
        },
        "target": {
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-8fa225b9",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae278887193110dfeb857ea63e243a3851fbb0bc",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "function_hash": "265349737743473571722933793098811342271",
            "length": 419.0
        },
        "target": {
            "function": "finalize_create_context_locked",
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-ab4f8e5e",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@afce71ff6daa9c0f852df0727fe32c6fb107f0fa",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "303835379580933776984077286357731001226",
                "325018120283488283606211048896299459283",
                "330653940827253456629666559928780373375",
                "230112239404843828432161491666091321185",
                "51252072776268017135629145119763040656",
                "165295183657991639565351560676353327749",
                "179749029125351987795020591119260969465",
                "258089683258204757623507584567222765668",
                "284068741868589958378360282714125520939",
                "231971330196865485713148814088143340420",
                "315408427213716424421796116537139934768",
                "307296845230078745790990264002237408946",
                "193895719393561076964682934473902461086",
                "36415393522402763795173848724725436505",
                "89623400617391791957000034479089669786",
                "311221337201480114777397358337617316451",
                "40303682744882562074362907831043089725",
                "135456841445651213959164768275936275708",
                "319206633122674698733738391269774260461",
                "192402466084968649407405520644983038358"
            ]
        },
        "target": {
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-e75f27ff",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b696c627b3f56e173f7f70b8487d66da8ff22506",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "function_hash": "55292591640421231676047787832333271209",
            "length": 399.0
        },
        "target": {
            "function": "finalize_create_context_locked",
            "file": "drivers/gpu/drm/i915/gem/i915_gem_context.c"
        },
        "id": "CVE-2023-52913-eeb0c82a",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae278887193110dfeb857ea63e243a3851fbb0bc",
        "signature_type": "Function"
    }
]