{"api_version":"1","generated_at":"2026-11-24T14:36:09+00:00","cve":"CVE-2026-99485","urls":{"html":"https://cve.report/CVE-2026-99485","api":"https://cve.report/api/cve/CVE-2026-99485.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99485","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99485"},"summary":{"title":"accel/amdxdna: clear the mailbox channel pointer when starting it fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: clear the mailbox channel pointer when starting it fails\n\naie2_create_context() allocates a mailbox channel, starts it, and on a\nfailed start frees it again:\n\n\thwctx->priv->mbox_chann = xdna_mailbox_alloc_channel(ndev->mbox);\n\t...\n\tret = xdna_mailbox_start_channel(hwctx->priv->mbox_chann, ...);\n\tif (ret)\n\t\tgoto free_channel;\n\t...\nfree_channel:\n\txdna_mailbox_free_channel(hwctx->priv->mbox_chann);\n\nhwctx->priv->mbox_chann keeps pointing at the freed channel. That\npointer is the driver's own test for whether a hardware context has a\nusable channel: aie2_destroy_context() returns early on NULL,\naie2_sched_job_run() refuses to run a job on NULL, and the message\nhelpers return -ENODEV on NULL. A stale pointer passes all of them.\n\nIt matters on the restart path. aie2_hwctx_restart() calls\naie2_create_context() again on a hardware context that is already live,\nafter aie2_hwctx_stop() has torn its channel down, and the context\nsurvives a failure there: aie2_sched_job_timedout() discards the return\nvalue entirely, and aie2_hwctx_resume() only propagates it. What is\nleft is a live hardware context holding a freed channel, and every\nlater user of it takes the non-NULL branch:\n\n  - the next job submitted reaches xdna_mailbox_send_msg() on the freed\n    channel, via the !mbox_chann guard in aie2_sched_job_run(),\n  - a second command timeout reaches aie2_hwctx_stop() ->\n    aie2_destroy_context(),\n  - closing the device reaches aie2_hwctx_fini() ->\n    aie2_release_resource() -> xrs_release_resource() ->\n    aie2_xrs_unload() -> aie2_destroy_context(),\n\nand aie2_destroy_context() then calls xdna_mailbox_stop_channel()\nfollowed by xdna_mailbox_free_channel() on memory that was already\nfreed: a use-after-free, and a second free of the same channel.\n\nThe AIE4 management channel already does this correctly -\naie4_mailbox_start() clears ndev->aie.mgmt_chann right after freeing\nit. Do the same here.\n\nThe create path itself is not affected: when aie2_xrs_load() fails,\nxrs_allocate_resource() removes the solver node without calling\n->unload, and aie2_hwctx_init() frees hwctx->priv, so the stale pointer\nnever outlives the structure holding it.\n\nStarting a channel can fail today without this patch: the ring buffer\nsizes firmware reports are rejected unless both are powers of two, and\nrequest_irq() can fail.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:18:03","updated_at":"2026-11-22 11:16:54"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4","name":"https://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473","name":"https://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99485","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99485","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d5b8b0347fa8470b751a506fb801797e271d7548 35003a3a2221207ded92ca4c60a54c2f83136473 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d5b8b0347fa8470b751a506fb801797e271d7548 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 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":{"cve_year":"2026","cve_id":"99485","cve":"CVE-2026-99485","epss":"0.001380000","percentile":"0.031300000","score_date":"2026-11-23","updated_at":"2026-11-24 00:07:47"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/accel/amdxdna/aie2_message.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"35003a3a2221207ded92ca4c60a54c2f83136473","status":"affected","version":"d5b8b0347fa8470b751a506fb801797e271d7548","versionType":"git"},{"lessThan":"2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4","status":"affected","version":"d5b8b0347fa8470b751a506fb801797e271d7548","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/accel/amdxdna/aie2_message.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.0"},{"lessThan":"7.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","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":"7.3.2","versionStartIncluding":"7.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: clear the mailbox channel pointer when starting it fails\n\naie2_create_context() allocates a mailbox channel, starts it, and on a\nfailed start frees it again:\n\n\thwctx->priv->mbox_chann = xdna_mailbox_alloc_channel(ndev->mbox);\n\t...\n\tret = xdna_mailbox_start_channel(hwctx->priv->mbox_chann, ...);\n\tif (ret)\n\t\tgoto free_channel;\n\t...\nfree_channel:\n\txdna_mailbox_free_channel(hwctx->priv->mbox_chann);\n\nhwctx->priv->mbox_chann keeps pointing at the freed channel. That\npointer is the driver's own test for whether a hardware context has a\nusable channel: aie2_destroy_context() returns early on NULL,\naie2_sched_job_run() refuses to run a job on NULL, and the message\nhelpers return -ENODEV on NULL. A stale pointer passes all of them.\n\nIt matters on the restart path. aie2_hwctx_restart() calls\naie2_create_context() again on a hardware context that is already live,\nafter aie2_hwctx_stop() has torn its channel down, and the context\nsurvives a failure there: aie2_sched_job_timedout() discards the return\nvalue entirely, and aie2_hwctx_resume() only propagates it. What is\nleft is a live hardware context holding a freed channel, and every\nlater user of it takes the non-NULL branch:\n\n  - the next job submitted reaches xdna_mailbox_send_msg() on the freed\n    channel, via the !mbox_chann guard in aie2_sched_job_run(),\n  - a second command timeout reaches aie2_hwctx_stop() ->\n    aie2_destroy_context(),\n  - closing the device reaches aie2_hwctx_fini() ->\n    aie2_release_resource() -> xrs_release_resource() ->\n    aie2_xrs_unload() -> aie2_destroy_context(),\n\nand aie2_destroy_context() then calls xdna_mailbox_stop_channel()\nfollowed by xdna_mailbox_free_channel() on memory that was already\nfreed: a use-after-free, and a second free of the same channel.\n\nThe AIE4 management channel already does this correctly -\naie4_mailbox_start() clears ndev->aie.mgmt_chann right after freeing\nit. Do the same here.\n\nThe create path itself is not affected: when aie2_xrs_load() fails,\nxrs_allocate_resource() removes the solver node without calling\n->unload, and aie2_hwctx_init() frees hwctx->priv, so the stale pointer\nnever outlives the structure holding it.\n\nStarting a channel can fail today without this patch: the ring buffer\nsizes firmware reports are rejected unless both are powers of two, and\nrequest_irq() can fail."}],"metrics":[{"cvssV3_1":{"baseScore":7,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"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().\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:08:38.616Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473"},{"url":"https://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4"}],"title":"accel/amdxdna: clear the mailbox channel pointer when starting it fails","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99485","datePublished":"2026-11-19T14:43:23.095Z","dateReserved":"2026-09-25T10:25:14.418Z","dateUpdated":"2026-11-22T11:08:38.616Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:18:03","lastModifiedDate":"2026-11-22 11:16:54","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99485","Ordinal":"1","Title":"accel/amdxdna: clear the mailbox channel pointer when starting i","CVE":"CVE-2026-99485","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99485","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: clear the mailbox channel pointer when starting it fails\n\naie2_create_context() allocates a mailbox channel, starts it, and on a\nfailed start frees it again:\n\n\thwctx->priv->mbox_chann = xdna_mailbox_alloc_channel(ndev->mbox);\n\t...\n\tret = xdna_mailbox_start_channel(hwctx->priv->mbox_chann, ...);\n\tif (ret)\n\t\tgoto free_channel;\n\t...\nfree_channel:\n\txdna_mailbox_free_channel(hwctx->priv->mbox_chann);\n\nhwctx->priv->mbox_chann keeps pointing at the freed channel. That\npointer is the driver's own test for whether a hardware context has a\nusable channel: aie2_destroy_context() returns early on NULL,\naie2_sched_job_run() refuses to run a job on NULL, and the message\nhelpers return -ENODEV on NULL. A stale pointer passes all of them.\n\nIt matters on the restart path. aie2_hwctx_restart() calls\naie2_create_context() again on a hardware context that is already live,\nafter aie2_hwctx_stop() has torn its channel down, and the context\nsurvives a failure there: aie2_sched_job_timedout() discards the return\nvalue entirely, and aie2_hwctx_resume() only propagates it. What is\nleft is a live hardware context holding a freed channel, and every\nlater user of it takes the non-NULL branch:\n\n  - the next job submitted reaches xdna_mailbox_send_msg() on the freed\n    channel, via the !mbox_chann guard in aie2_sched_job_run(),\n  - a second command timeout reaches aie2_hwctx_stop() ->\n    aie2_destroy_context(),\n  - closing the device reaches aie2_hwctx_fini() ->\n    aie2_release_resource() -> xrs_release_resource() ->\n    aie2_xrs_unload() -> aie2_destroy_context(),\n\nand aie2_destroy_context() then calls xdna_mailbox_stop_channel()\nfollowed by xdna_mailbox_free_channel() on memory that was already\nfreed: a use-after-free, and a second free of the same channel.\n\nThe AIE4 management channel already does this correctly -\naie4_mailbox_start() clears ndev->aie.mgmt_chann right after freeing\nit. Do the same here.\n\nThe create path itself is not affected: when aie2_xrs_load() fails,\nxrs_allocate_resource() removes the solver node without calling\n->unload, and aie2_hwctx_init() frees hwctx->priv, so the stale pointer\nnever outlives the structure holding it.\n\nStarting a channel can fail today without this patch: the ring buffer\nsizes firmware reports are rejected unless both are powers of two, and\nrequest_irq() can fail.","Type":"Description","Title":"accel/amdxdna: clear the mailbox channel pointer when starting i"}]}}}