# CVE-2026-85032: Use-after-free in the MCTP over USB binding when the host disables the class while RX parsing is in progress

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.8
- **CVSS:** 4.8 (v3.1, CNA) `CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; 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.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-11-03T13:36:05.618Z
- **Modified:** 2026-11-03T19:18:11.453Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.4.0, \< 4.5.0

## Description

The MCTP over USB device class in subsys/pmci/mctp/mctp\_usb.c splits RX handling across two threads: the system workqueue runs mctp\_usb\_class\_out\_work(), which parses host OUT data byte by byte and fills a packet buffer at usb-\>rx\_pkt, while the USB device stack thread runs mctp\_usb\_class\_disable(). The disable handler used k\_work\_cancel(), which removes a queued work item but returns immediately without waiting for a handler that is already running, and then called mctp\_usb\_reset\_rx\_state() to mctp\_pktbuf\_free() the packet buffer the worker may still be using.

Both entry points into mctp\_usb\_class\_disable() are driven by the attached USB host: a SET\_CONFIGURATION request and a USB bus reset both reach it via usbd\_config\_reset() in subsys/usb/device\_next/usbd\_config.c. A host that streams partial MCTP frames on the bulk OUT endpoint and repeatedly forces a configuration change or bus reset therefore controls both the data being parsed and the moment the teardown runs, and can retry the race indefinitely without credentials or user interaction.

If the free lands while the worker holds the pointer, the worker writes host-supplied bytes into freed memory of the dedicated MCTP heap (CONFIG\_MCTP\_HEAP\_SIZE in subsys/pmci/mctp/mctp\_memory.c), corrupting recycled buffers or sys\_heap free-block metadata; this window requires genuine parallelism, i.e. CONFIG\_SMP or a preemptible CONFIG\_SYSTEM\_WORKQUEUE\_PRIORITY. With the default cooperative workqueue the worker can still yield inside mctp\_bus\_rx() (application callback or a control-message reply blocking in mctp\_usb\_tx()), after which it resumes and calls mctp\_pktbuf\_free(usb-\>rx\_pkt) on a pointer the teardown has NULLed, dereferencing NULL and faulting on targets with null-pointer detection.

The fix replaces the cancel with k\_work\_cancel\_sync() plus a new struct k\_work\_sync out\_work\_sync, so disable waits for the RX worker to finish before draining the FIFO and freeing the packet buffer. The affected code is the MCTP subsystem, which is marked experimental, built only with CONFIG\_MCTP\_USB.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 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-85032. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-85032.md
Affected: zephyrproject zephyr >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: 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-85032 being exploited?

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

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

Medium: CVSS 4.8 (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-85032?

zephyrproject zephyr \>= 4.4.0, \< 4.5.0.

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

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

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

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

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-pp5m-jr2h-qp3f>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/277424084e740da5d61a17f40bea3457fa593acc>

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

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