{"vuln_id":"CVE-2026-99485","aliases":[],"description":"kernel: kernel: Denial of Service via use-after-free in AMD XDNA driver","published_at":"2026-11-19T14:43:23Z","modified_at":"2026-11-22T11:16:54.263000Z","first_seen_at":"2026-11-21T19:15:15.262924Z","severity":"high","severity_source":"nvd","cvss_score":7.0,"cvss_vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-825"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00156,"epss_percentile":0.04753,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99485"},"matched_alias":null,"items":[{"id":8817,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-99485: In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: clear the mailbox channel pointer when starting it fails aie2_create_context…","summary":"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.\n\nReferences:\nhttps://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4\nhttps://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99485","published_at":"2026-11-19T15:18:03.267000Z","updated_at":"2026-11-22T11:16:54.263000Z","fetched_at":"2026-11-21T19:15:31.484508Z","severity":"high","cvss_score":7.0,"epss":0.00156,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2026-99485","vuln_ids":["CVE-2026-99485"],"tags":[],"cluster_id":935,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8817","html":"https://vulnwatch.ve1ve2.com/item/8817"}},{"id":1196,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-99485: kernel: kernel: Denial of Service via use-after-free in AMD XDNA driver","summary":"kernel: kernel: Denial of Service via use-after-free in AMD XDNA driver","url":"https://access.redhat.com/security/cve/cve-2026-99485","published_at":"2026-11-19T14:43:23Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.894018Z","severity":"high","cvss_score":7.0,"epss":0.00156,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-99485","vuln_ids":["CVE-2026-99485"],"tags":["redhat"],"cluster_id":935,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/1196","html":"https://vulnwatch.ve1ve2.com/item/1196"}}]}