{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-139630",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.944Z",
        "datePublished": "2026-11-30T13:36:31.552Z",
        "dateUpdated": "2026-12-01T05:42:59.616Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:42:59.616Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Preallocate hardware context schedulers\n\nThe hardware context scheduler fence is exposed through\ndrm_syncobj_add_point(). After a hardware context is destroyed,\nuserspace can still call drm_sched_fence_get_timeline_name() on the\nfence through SYNC_IOC_FILE_INFO. This results in a use-after-free\nwhen accessing fence->sched->name.\n\nPreallocate hardware context schedulers and free them during device\nteardown instead. A destroyed hardware context no longer frees its\nscheduler, ensuring that the scheduler remains valid while its fences\nare still accessible."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
                        "baseScore": 7.1,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is reached through local ioctls on the amdxdna accel node: DRM_IOCTL_AMDXDNA_EXEC_CMD calls aie2_cmd_submit(), which adds the drm_sched finished fence to the hwctx syncobj. DESTROY_HWCTX then frees priv->sched. DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD (EXPORT_SYNC_FILE) followed by SYNC_IOC_FILE_INFO reaches drm_sched_fence_get_timeline_name(). No remote protocol carries this data.\nAC:L - The attacker creates, submits to and destroys their own hwctx, and owns the syncobj handle (args->syncobj_handle). On 6.14-6.16, sync_fill_fence_info() calls ops->get_timeline_name() even on signaled fences, so the UAF fires every time. On 6.17+, what remains is a check-to-load race between the attacker's own FILE_INFO and DESTROY_HWCTX calls, and nothing gives an RCU grace period before kfree(priv).\nPR:L - The amdxdna CREATE_HWCTX, EXEC_CMD and DESTROY_HWCTX ioctls are registered with flags 0 (no DRM_ROOT_ONLY), and the drm_syncobj ioctls are DRM_RENDER_ALLOW. A local user who can open /dev/accel/accel* (render group / uaccess seat user) is enough.\nUI:N - The attacker runs every step against objects they create themselves (hwctx, command BO, syncobj, sync_file). No other user has to do anything.\nS:U - The freed amdxdna_hwctx_priv and the leaked kernel memory both belong to the same kernel security authority. No VM, IOMMU or sandbox boundary is crossed.\nC:H - drm_sched_fence_get_timeline_name() loads the sched->name pointer from the freed kmalloc'd priv, and strscpy copies up to 31 bytes from that address into sync_fence_info.obj_name, which is copied to userspace. If the slot is refilled with attacker data, the attacker picks the pointer, giving a repeatable arbitrary kernel read.\nI:N - The only access to the freed scheduler is the read of fence->sched->name. The fence lock, parent and deadline live in the refcounted drm_sched_fence, so nothing writes through freed memory and the bug gives no write primitive.\nA:H - A non-canonical or unmapped pointer left in the reclaimed priv->sched->name slot makes strscpy fault in SYNC_IOC_FILE_INFO, giving a kernel oops that any accel user can trigger repeatedly."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/accel/amdxdna/aie2_ctx.c",
                        "drivers/accel/amdxdna/aie2_pci.c",
                        "drivers/accel/amdxdna/aie2_pci.h"
                    ],
                    "versions": [
                        {
                            "version": "aac243092b707bb3018e951d470cc1a9bcbaba6c",
                            "lessThan": "e76d6740254afede99334d965ea9b22c4b34a30b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "aac243092b707bb3018e951d470cc1a9bcbaba6c",
                            "lessThan": "d7957565e05797d1eb3ba7d3c585af17303d4717",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "aac243092b707bb3018e951d470cc1a9bcbaba6c",
                            "lessThan": "f7afecd54296cf7ad6fa36f692d2a7427e32f25d",
                            "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/accel/amdxdna/aie2_ctx.c",
                        "drivers/accel/amdxdna/aie2_pci.c",
                        "drivers/accel/amdxdna/aie2_pci.h"
                    ],
                    "versions": [
                        {
                            "version": "6.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.6",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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.14",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.14",
                                    "versionEndExcluding": "7.3.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.14",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/e76d6740254afede99334d965ea9b22c4b34a30b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d7957565e05797d1eb3ba7d3c585af17303d4717"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f7afecd54296cf7ad6fa36f692d2a7427e32f25d"
                }
            ],
            "title": "accel/amdxdna: Preallocate hardware context schedulers",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}