CVE-2026-99485
published high CVSS 3.1 · 7.0accel/amdxdna: clear the mailbox channel pointer when starting it fails
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd5b8b0347fa8470b751a506fb801797e271d7548 to < 35003a3a2221207ded92ca4c60a54c2f83136473 · d5b8b0347fa8470b751a506fb801797e271d7548 to < 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.3.2 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 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: clear the mailbox channel pointer when starting it fails aie2_create_context() allocates a mailbox channel, starts it, and on a failed start frees it again: hwctx->priv->mbox_chann = xdna_mailbox_alloc_channel(ndev->mbox); ... ret = xdna_mailbox_start_channel(hwctx->priv->mbox_chann, ...); if (ret) goto free_channel; ... free_channel: xdna_mailbox_free_channel(hwctx->priv->mbox_chann); hwctx->priv->mbox_chann keeps pointing at the freed channel. That pointer is the driver's own test for whether a hardware context has a usable channel: aie2_destroy_context() returns early on NULL, aie2_sched_job_run() refuses to run a job on NULL, and the message helpers return -ENODEV on NULL. A stale pointer passes all of them. It matters on the restart path. aie2_hwctx_restart() calls aie2_create_context() again on a hardware context that is already live, after aie2_hwctx_stop() has torn its channel down, and the context survives a failure there: aie2_sched_job_timedout() discards the return value entirely, and aie2_hwctx_resume() only propagates it. What is left is a live hardware context holding a freed channel, and every later user of it takes the non-NULL branch: - the next job submitted reaches xdna_mailbox_send_msg() on the freed channel, via the !mbox_chann guard in aie2_sched_job_run(), - a second command timeout reaches aie2_hwctx_stop() -> aie2_destroy_context(), - closing the device reaches aie2_hwctx_fini() -> aie2_release_resource() -> xrs_release_resource() -> aie2_xrs_unload() -> aie2_destroy_context(), and aie2_destroy_context() then calls xdna_mailbox_stop_channel() followed by xdna_mailbox_free_channel() on memory that was already freed: a use-after-free, and a second free of the same channel. The AIE4 management channel already does this correctly - aie4_mailbox_start() clears ndev->aie.mgmt_chann right after freeing it. Do the same here. The create path itself is not affected: when aie2_xrs_load() fails, xrs_allocate_resource() removes the solver node without calling ->unload, and aie2_hwctx_init() frees hwctx->priv, so the stale pointer never outlives the structure holding it. Starting a channel can fail today without this patch: the ring buffer sizes firmware reports are rejected unless both are powers of two, and request_irq() can fail.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - aie2_create_context() frees hwctx->priv->mbox_chann on the free_channel path when xdna_mailbox_start_channel() fails and, before the fix, leaves that pointer set. The surviving caller is aie2_hwctx_restart(), from aie2_sched_job_timedout() or aie2_hw_resume(), after AMDXDNA_CREATE_HWCTX and AMDXDNA_EXEC_CMD on the accel node opened by accel_open(). AC:H - xdna_mailbox_start_channel() fails only if the firmware create-context cq_pair buf_size values are not powers of two or request_irq() rejects the MSI-X vector, and only aie2_hwctx_restart() keeps the hwctx alive afterward. The caller can idle into amdxdna_pm autosuspend or trip the 2s TDR, but cannot force those two start failures; a failed first aie2_xrs_load() frees hwctx->priv instead. PR:L - amdxdna_drm_create_hwctx_ioctl() and the AMDXDNA_EXEC_CMD handler amdxdna_drm_submit_execbuf() are registered with ioctl flags 0, and accel_open() files are DRM_MINOR_ACCEL so drm_ioctl_permit() does not demand DRM_RENDER_ALLOW or CAP_SYS_ADMIN. A local user who can open /dev/accel/accel* can create the context and submit the command; DRM_ROOT_ONLY applies only to AMDXDNA_SET_STATE, which this path does not use. UI:N - The attacking process opens the accel node, calls AMDXDNA_CREATE_HWCTX, and either drops the runtime-PM reference in aie2_hwctx_init() so the 5s autosuspend runs aie2_hw_suspend() then aie2_hw_resume(), or submits AMDXDNA_EXEC_CMD so aie2_sched_job_timedout() calls aie2_hwctx_restart(). Each step is on that process's own fd. S:U - The twice-freed object is the mailbox_channel from xdna_mailbox_alloc_channel() for this hwctx. aie2_init() bails out unless hypervisor_is_type() is X86_HYPER_NATIVE, and the heap corruption is a privilege escalation inside that same kernel. C:H - aie2_sched_job_run() treats the non-NULL mbox_chann as live and calls xdna_mailbox_send_msg(), whose mailbox_reg_read() and xa_alloc_cyclic_irq() follow mb, res[], and chan_xa in the freed channel. Reclaiming that kmalloc slot lets those reads target attacker-chosen kernel memory. I:H - mailbox_send_msg() writel()s and memcpy_toio()s through mb->res.mbox_base and the ring offsets in the freed channel, using the caller's exec payload, and aie2_destroy_context() then free_irq()s, drain_workqueue()s, and xdna_mailbox_free_channel()s that same pointer a second time. A:H - With the stale pointer set, close runs aie2_hwctx_fini() to aie2_xrs_unload() to aie2_destroy_context(), which drain_workqueue()s the work_q already destroyed in the first xdna_mailbox_free_channel() and kfree()s the channel again. aie2_sched_job_timedout() discards the restart error, so the live context remains to be torn down.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d5b8b0347fa8470b751a506fb801797e271d7548 to < 35003a3a2221207ded92ca4c60a54c2f83136473 (affected · git)d5b8b0347fa8470b751a506fb801797e271d7548 to < 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.0 (affected)0 to < 7.0 (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
accel/amdxdna: clear the mailbox channel pointer when starting it fails
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 36fd00b64fcee1feafdd719e1c0d3be08318abbf648507df4d03cb6a404f3fca
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record