Skip to main content
Vulnerability Database/CVE-2026-84894

CVE-2026-84894: Moxygen Use-After-Free Vulnerability

CVE-2026-84894 is a use-after-free vulnerability in moxygen that occurs when MoQSession keeps using an invalidated stream handle after reading a FIN. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-84894 Overview

CVE-2026-84894 is a use-after-free vulnerability [CWE-416] in moxygen, Facebook's experimental Media over QUIC (MoQ) implementation. The flaw resides in MoQSession::dataStreamReadLoop, which continues using a stream read handle after reading a FIN. The FIN invalidates the handle under proxygen's WebTransport API, leaving the session operating on stale memory. A remote peer triggers the condition by opening a data stream that references an unknown track alias and carries the FIN in the same write. The issue is fixed in commit 004123dd24c3.

Critical Impact

A remote unauthenticated attacker can trigger stale handle use in a MoQ session by sending a single crafted data stream, exposing the process to memory corruption and confidentiality impact.

Affected Products

  • moxygen (facebookexperimental/moxygen) prior to commit 004123dd24c3
  • Applications embedding vulnerable moxygen builds that use proxygen's WebTransport API
  • MoQ (Media over QUIC) endpoints built on the affected MoQSession code path

Discovery Timeline

  • 2026-09-28 - CVE-2026-84894 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-84894

Vulnerability Analysis

Moxygen implements the MoQ transport protocol on top of proxygen's WebTransport API. Inside MoQSession::dataStreamReadLoop, the session reads from a WebTransport unidirectional stream to receive object payloads bound to a track alias. When the peer signals end-of-stream with a FIN, proxygen invalidates the stream read handle. The moxygen loop continues to reference that handle after the FIN, producing a use-after-free condition [CWE-416]. The fix in commit 004123dd24c3 drops references to the handle when FIN is observed and unwinds the read loop safely.

Root Cause

The root cause is a lifetime mismatch between proxygen's WebTransport stream read handle and moxygen's session-level read loop. Proxygen treats the read handle as consumed once a FIN is delivered to the application. Moxygen's loop did not honor that contract when the stream referenced an unknown track alias. The unknown-alias error path continued to touch the handle instead of releasing it, so subsequent operations on the freed object corrupted state.

Attack Vector

A remote peer with the ability to open a data stream to a moxygen endpoint triggers the flaw without authentication. The attacker opens a WebTransport data stream, encodes a track alias the receiver has not subscribed to, and writes the FIN in the same operation. The receiver dispatches the payload, hits the unknown-track-alias error path, then reuses the now-invalid stream read handle. Exploitation is achievable over the network at low attack complexity and does not require user interaction.

See the Facebook Security Advisory CVE-2026-84894 and the GitHub Commit on Moxygen for the corrective patch.

Detection Methods for CVE-2026-84894

Indicators of Compromise

  • Unexpected termination or crash of processes linking against pre-004123dd24c3 moxygen builds during WebTransport data stream handling.
  • Inbound MoQ data streams that reference track aliases not previously advertised by the receiver.
  • WebTransport unidirectional streams that carry payload bytes together with an immediate FIN from unknown peers.

Detection Strategies

  • Deploy AddressSanitizer or equivalent memory error detectors on staging builds of moxygen to surface the use-after-free on MoQSession::dataStreamReadLoop.
  • Correlate proxygen WebTransport error logs with moxygen session termination events to identify stale-handle patterns.
  • Alert on repeated unknown-track-alias errors from a single remote peer within short time windows.

Monitoring Recommendations

  • Instrument moxygen with per-session counters for FIN-terminated streams carrying unknown track aliases and forward the telemetry to a centralized data lake.
  • Capture full stack traces on crash for any process embedding moxygen and route them to a crash reporting service for triage.
  • Monitor egress and ingress QUIC/WebTransport connection metadata for anomalous short-lived streams that immediately signal FIN.

How to Mitigate CVE-2026-84894

Immediate Actions Required

  • Update moxygen source trees to include commit 004123dd24c3 or later and rebuild all dependent binaries.
  • Restart any long-running services embedding moxygen after deploying the patched build to clear vulnerable process state.
  • Inventory internal projects and third-party dependencies that vendor moxygen to confirm none remain on an affected revision.

Patch Information

The fix is committed to the moxygen repository as 004123dd24c30dad6b649163575145f240dabc94. Consumers should pin to this commit or a later revision. Reference the GitHub Commit on Moxygen and the Facebook Security Advisory CVE-2026-84894 for authoritative details.

Workarounds

  • Restrict inbound WebTransport connectivity to trusted peers using network-layer allowlists until the patched build is deployed.
  • Terminate MoQ endpoints exposed to untrusted networks if immediate patching is not feasible.
  • Enforce strict track alias validation at an upstream proxy to reject data streams that reference unknown aliases before they reach moxygen.
bash
# Configuration example: pin moxygen to the patched commit
git -C third_party/moxygen fetch origin
git -C third_party/moxygen checkout 004123dd24c30dad6b649163575145f240dabc94
git -C third_party/moxygen submodule update --init --recursive
# Rebuild dependent binaries
cmake --build build --target moxygen --clean-first

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.