{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-46311",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-05-13T15:03:33.111Z",
        "datePublished": "2026-06-08T15:50:41.866Z",
        "dateUpdated": "2026-08-05T12:31:10.882Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:31:10.882Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu/userq: fix access to stale wptr mapping\n\nUse drm_exec to take both locks i.e vm root bo and\nwptr_obj bo to access the mapping data properly.\n\nThis fixes the security issue of unmap the wptr_obj while\na queue creation is in progress and passing other\nbo at same address.\n\n(cherry picked from commit 1fc6c8ab45dbee096469c08c13f6099d57a52d6c)"
                }
            ],
            "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 bug is reached only through local DRM ioctls (DRM_IOCTL_AMDGPU_USERQ and DRM_IOCTL_AMDGPU_GEM_VA) on an AMDGPU render node (/dev/dri/renderD*), not via any network-facing path.\nAC:L - An attacker controls both sides of the race by running concurrent threads that issue USERQ_CREATE and GEM_VA UNMAP/REPLACE on the same wptr VA; amdgpu_vm_bo_unmap proceeds even when userq_va_mapped is set, making the window reliably triggerable.\nPR:L - Exploitation requires only access to the AMDGPU render node (DRM_AUTH|DRM_RENDER_ALLOW), which is available to unprivileged local users in the render/video group, not real root in the init namespace.\nUI:N - No victim interaction is required; the attacker automates the race with concurrent ioctl calls from their own process.\nS:U - The vulnerability corrupts kernel driver state and can lead to standard local kernel privilege escalation; it does not cross a VM, sandbox, or IOMMU security boundary.\nC:H - Operating on a stale BO pointer without holding locks can cause use-after-free and use attacker-replaced mappings, enabling arbitrary kernel memory disclosure through freed-object reuse and GART mapping confusion.\nI:H - The stale BO can be pinned and mapped into GART while a different BO occupies the VA, letting GPU firmware track wptr at the wrong physical address and enabling kernel heap corruption via UAF on amdgpu_bo structures.\nA:H - Use-after-free on BO reservation/pinning can kernel-oops the system, and incorrect wptr GART setup can hang or reset the GPU during queue scheduling."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/amd/amdgpu/mes_userqueue.c"
                    ],
                    "versions": [
                        {
                            "version": "5fb2f7fc21a3668e5794cc0d153641b9719713e1",
                            "lessThan": "336a9186f3a4b65bbd865d93936605ac8a1a3991",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5fb2f7fc21a3668e5794cc0d153641b9719713e1",
                            "lessThan": "6da7b1242da4455b11c24ce667d1cab1a348c8ea",
                            "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/amd/amdgpu/mes_userqueue.c"
                    ],
                    "versions": [
                        {
                            "version": "6.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0.9",
                            "lessThanOrEqual": "7.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1",
                            "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.16",
                                    "versionEndExcluding": "7.0.9"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.16",
                                    "versionEndExcluding": "7.1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/336a9186f3a4b65bbd865d93936605ac8a1a3991"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6da7b1242da4455b11c24ce667d1cab1a348c8ea"
                }
            ],
            "title": "drm/amdgpu/userq: fix access to stale wptr mapping",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}