{"id":"CVE-2026-99485","aliases":[],"cve":{"records":[{"id":"CVE-2026-99485","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.418Z","published":"2026-11-19T14:43:23.095Z","modified":"2026-11-22T11:08:38.616Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-22T11:08:38.616Z"}],"references":[{"url":"https://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"accel/amdxdna: clear the mailbox channel pointer when starting it fails","titleSource":"Linux","descriptionSource":"Linux","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.","score":7,"severity":"high","published":"2026-11-19T14:43:23.095Z","modified":"2026-11-22T11:08:38.616Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"d5b8b0347fa8470b751a506fb801797e271d7548","status":"affected","lessThan":"35003a3a2221207ded92ca4c60a54c2f83136473","versionType":"git"},{"version":"d5b8b0347fa8470b751a506fb801797e271d7548","status":"affected","lessThan":"2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99485"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99485"}],"remediation":[],"references":["https://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473","https://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4"],"sources":[{"name":"CVE","id":"CVE-2026-99485","modified":"2026-11-22T11:08:38.616Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99485"}],"assessments":[{"source":"Linux","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7}],"sourceAffected":[],"observedAt":"2026-11-22T11:21:51.481Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T12:20:32.540Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-22T04:20:31.125Z","attemptedAt":"2026-11-22T04:20:31.125Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-22T03:55:34.006Z","attemptedAt":"2026-11-22T03:55:34.006Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-22T03:35:37.885Z","attemptedAt":"2026-11-22T03:35:37.885Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-22T02:10:31.002Z","attemptedAt":"2026-11-22T02:10:31.002Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99485","url":"https://www.first.org/epss/","probability":0.00156,"percentile":0.04753,"date":"2026-11-21","checkedAt":"2026-11-22T02:10:31.002Z"},{"source":"ENISA EUVD","id":"EUVD-2026-130160","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130160","modified":"Nov 19, 2026, 2:43:23 PM","checkedAt":"2026-11-22T03:35:37.885Z"},{"source":"GitHub Advisory Database","id":"GHSA-2255-vxmv-hcqm","url":"https://github.com/advisories/GHSA-2255-vxmv-hcqm","modified":"2026-11-19T15:31:27Z","checkedAt":"2026-11-22T03:55:34.006Z"},{"source":"NVD","id":"CVE-2026-99485","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99485","modified":"2026-11-19T15:18:03.267","checkedAt":"2026-11-22T04:20:31.125Z"}],"aiSummary":{"text":"The Linux kernel has a use-after-free vulnerability in the accel/amdxdna module. When starting a mailbox channel fails, the channel pointer is not cleared, leading to potential issues when the channel is reused. This affects Linux kernel versions 7.0 and later, prior to 7.3.2 and 7.4-rc1.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-21T14:01:05.558Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-99485"}]}}