# CVE-2026-99485: accel/amdxdna: clear the mailbox channel pointer when starting it fails

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-28)
- **Published:** 2026-11-19T14:43:23.095Z
- **Modified:** 2026-11-22T11:16:54.263Z

## Who should check

- Anyone running Linux \>= d5b8b0347fa8470b751a506fb801797e271d7548, \< 35003a3a2221207ded92ca4c60a54c2f83136473; \>= d5b8b0347fa8470b751a506fb801797e271d7548, \< 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4
- Anyone running Linux 7.0

## 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.

## Affected and fixed versions

- Linux: \>= d5b8b0347fa8470b751a506fb801797e271d7548, \< 35003a3a2221207ded92ca4c60a54c2f83136473; \>= d5b8b0347fa8470b751a506fb801797e271d7548, \< 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4 (cvelist)
- Linux: 7.0 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99485. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99485.md
Affected: Linux >= d5b8b0347fa8470b751a506fb801797e271d7548, < 35003a3a2221207ded92ca4c60a54c2f83136473; >= d5b8b0347fa8470b751a506fb801797e271d7548, < 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4; Linux 7.0
Fixed in: Linux 35003a3a2221207ded92ca4c60a54c2f83136473, Linux 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99485 being exploited?

There is no confirmed exploitation: CVE-2026-99485 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99485?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-99485?

Linux \>= d5b8b0347fa8470b751a506fb801797e271d7548, \< 35003a3a2221207ded92ca4c60a54c2f83136473; \>= d5b8b0347fa8470b751a506fb801797e271d7548, \< 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4; Linux 7.0.

### Is there a fix for CVE-2026-99485?

Yes. Fixed in Linux 35003a3a2221207ded92ca4c60a54c2f83136473, Linux 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4. Upgrade Linux to 2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4 or later.

### How do I check if I'm affected by CVE-2026-99485?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/35003a3a2221207ded92ca4c60a54c2f83136473>
- other: <https://git.kernel.org/stable/c/2117e3d96a4fd1ee13fa28b31494ff5f5db6ccf4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99485>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99485> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99485>
