{"api_version":"1","generated_at":"2026-12-01T06:50:22+00:00","cve":"CVE-2026-139630","urls":{"html":"https://cve.report/CVE-2026-139630","api":"https://cve.report/api/cve/CVE-2026-139630.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139630","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139630"},"summary":{"title":"accel/amdxdna: Preallocate hardware context schedulers","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:46","updated_at":"2026-12-01 06:17:46"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/e76d6740254afede99334d965ea9b22c4b34a30b","name":"https://git.kernel.org/stable/c/e76d6740254afede99334d965ea9b22c4b34a30b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f7afecd54296cf7ad6fa36f692d2a7427e32f25d","name":"https://git.kernel.org/stable/c/f7afecd54296cf7ad6fa36f692d2a7427e32f25d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d7957565e05797d1eb3ba7d3c585af17303d4717","name":"https://git.kernel.org/stable/c/d7957565e05797d1eb3ba7d3c585af17303d4717","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139630","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139630","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aac243092b707bb3018e951d470cc1a9bcbaba6c e76d6740254afede99334d965ea9b22c4b34a30b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aac243092b707bb3018e951d470cc1a9bcbaba6c d7957565e05797d1eb3ba7d3c585af17303d4717 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected aac243092b707bb3018e951d470cc1a9bcbaba6c f7afecd54296cf7ad6fa36f692d2a7427e32f25d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/accel/amdxdna/aie2_ctx.c","drivers/accel/amdxdna/aie2_pci.c","drivers/accel/amdxdna/aie2_pci.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e76d6740254afede99334d965ea9b22c4b34a30b","status":"affected","version":"aac243092b707bb3018e951d470cc1a9bcbaba6c","versionType":"git"},{"lessThan":"d7957565e05797d1eb3ba7d3c585af17303d4717","status":"affected","version":"aac243092b707bb3018e951d470cc1a9bcbaba6c","versionType":"git"},{"lessThan":"f7afecd54296cf7ad6fa36f692d2a7427e32f25d","status":"affected","version":"aac243092b707bb3018e951d470cc1a9bcbaba6c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/accel/amdxdna/aie2_ctx.c","drivers/accel/amdxdna/aie2_pci.c","drivers/accel/amdxdna/aie2_pci.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:59.616Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139630","datePublished":"2026-11-30T13:36:31.552Z","dateReserved":"2026-11-30T13:22:15.944Z","dateUpdated":"2026-12-01T05:42:59.616Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:46","lastModifiedDate":"2026-12-01 06:17:46","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139630","Ordinal":"1","Title":"accel/amdxdna: Preallocate hardware context schedulers","CVE":"CVE-2026-139630","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139630","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"accel/amdxdna: Preallocate hardware context schedulers"}]}}}