CVE-2026-139630
published high CVSS 3.1 · 7.1accel/amdxdna: Preallocate hardware context schedulers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxaac243092b707bb3018e951d470cc1a9bcbaba6c to < e76d6740254afede99334d965ea9b22c4b34a30b · aac243092b707bb3018e951d470cc1a9bcbaba6c to < d7957565e05797d1eb3ba7d3c585af17303d4717 · aac243092b707bb3018e951d470cc1a9bcbaba6c to < f7afecd54296cf7ad6fa36f692d2a7427e32f25d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.18.66 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Preallocate hardware context schedulers The hardware context scheduler fence is exposed through drm_syncobj_add_point(). After a hardware context is destroyed, userspace can still call drm_sched_fence_get_timeline_name() on the fence through SYNC_IOC_FILE_INFO. This results in a use-after-free when accessing fence->sched->name. Preallocate hardware context schedulers and free them during device teardown instead. A destroyed hardware context no longer frees its scheduler, ensuring that the scheduler remains valid while its fences are still accessible.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: 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. AC: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). PR: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. UI:N - The attacker runs every step against objects they create themselves (hwctx, command BO, syncobj, sync_file). No other user has to do anything. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | aac243092b707bb3018e951d470cc1a9bcbaba6c to < e76d6740254afede99334d965ea9b22c4b34a30b (affected · git)aac243092b707bb3018e951d470cc1a9bcbaba6c to < d7957565e05797d1eb3ba7d3c585af17303d4717 (affected · git)aac243092b707bb3018e951d470cc1a9bcbaba6c to < f7afecd54296cf7ad6fa36f692d2a7427e32f25d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.18.66 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
accel/amdxdna: Preallocate hardware context schedulers
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3353e1fa9bcf8c7a62a2528490dc04b4eb1bcbe6969570fb73bc06be5600e0b8
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record