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-41210 Overview
CVE-2026-41210 is an out-of-bounds write vulnerability [CWE-787] in Moonlight Qt, a GameStream client for Windows, macOS, Linux, and Steam Link. Versions 6.1.0 and earlier parse attacker-controlled H.264 Sequence Parameter Set (SPS) Network Abstraction Layer (NAL) units without validating the seq_parameter_set_id field. A malicious streaming host can send a crafted SPS that indexes a 32-entry table out of bounds, corrupting the heap in the Moonlight client process. The demonstrated impact is a reliable client crash. Code execution has not been established. The issue is fixed in version 6.2.0.
Critical Impact
A malicious GameStream host can remotely corrupt heap memory in the Moonlight Qt client and cause a reliable crash after a victim initiates a streaming session.
Affected Products
- Moonlight Qt 6.1.0 and earlier (Windows)
- Moonlight Qt 6.1.0 and earlier (macOS and Linux)
- Moonlight Qt 6.1.0 and earlier (Steam Link)
Discovery Timeline
- 2026-10-12 - CVE-2026-41210 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-41210
Vulnerability Analysis
Moonlight Qt applies an SPS "fixup" to the video bitstream when the selected decoder path does not advertise CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC. The fixup logic in app/streaming/video/ffmpeg.cpp passes the server-provided H.264 SPS NAL to the bundled h264bitstream parser. The parser extracts seq_parameter_set_id from the attacker-controlled stream and uses the value directly to index a fixed 32-entry sps_table array. No bounds check is applied before the write.
Any seq_parameter_set_id value of 32 or greater causes a write past the end of sps_table, corrupting adjacent heap memory inside the Moonlight client. Because the SPS content originates from the streaming server, a hostile host controls the index value and the data stored at the computed offset. The vulnerability requires the victim to initiate a streaming session to the attacker-controlled host, which the Common Vulnerability Scoring System (CVSS) vector captures as the user-interaction requirement.
Root Cause
The root cause is missing input validation on a server-supplied field used as an array index. The H.264 specification reserves seq_parameter_set_id values 0 through 31, but the parser trusts the Exp-Golomb-decoded value from the bitstream and does not clamp or reject out-of-range entries before indexing sps_table. Additional defects in the vendored h264bitstream library, including unchecked loop counters in bs_read_ue and unchecked buffer bounds in NAL unit scanning, compound the exposure.
Attack Vector
Exploitation is remote and does not require authentication to the Moonlight client. The attacker operates a malicious GameStream host and waits for a victim to connect. During stream negotiation, the host sends a crafted H.264 SPS NAL containing a seq_parameter_set_id of 32 or greater, triggering the out-of-bounds write when Moonlight selects a decoder path that lacks reference frame invalidation support.
// Upstream fix in h264bitstream/bs.h – validates the Exp-Golomb
// leading-zero count before shifting, preventing undefined behavior
// in the SPS parser used by Moonlight Qt.
static inline uint32_t bs_read_ue(bs_t* b)
{
uint32_t r = 0;
int i = 0;
while (!bs_eof(b) && (i < 32) && (bs_read_u1(b) == 0))
{
i++;
}
if (i >= 32)
{
return 0;
}
r = bs_read_u(b, i);
r += (1U << i) - 1U;
return r;
}
// Source: https://github.com/moonlight-stream/moonlight-qt/commit/3e24a7a1a5369163482ce5a76d5232536e03c53f
Detection Methods for CVE-2026-41210
Indicators of Compromise
- Unexpected termination or crash of the Moonlight Qt client (moonlight.exe, Moonlight, or moonlight-qt) shortly after initiating a stream to an unfamiliar host.
- Crash dumps indicating heap corruption inside ffmpeg.cpp SPS fixup code paths or h264bitstream symbols.
- Outbound GameStream sessions (TCP 47984, 47989, 48010 and UDP 47998-48010) to hosts outside the user's trusted LAN or VPN.
Detection Strategies
- Inventory endpoints running Moonlight Qt and flag any installation reporting a version earlier than 6.2.0.
- Alert on repeated process crashes of the Moonlight client correlated with recent inbound GameStream traffic from new IP addresses.
- Hunt for connections from workstations to unknown GameStream hosts, especially hosts resolved via public DNS rather than internal name resolution.
Monitoring Recommendations
- Collect Windows Error Reporting, macOS ReportCrash, and Linux coredump telemetry from endpoints where Moonlight is installed.
- Monitor egress to GameStream service ports and compare destinations against an allowlist of sanctioned host systems.
- Track software inventory changes to confirm that upgrades to Moonlight Qt 6.2.0 complete across all managed devices.
How to Mitigate CVE-2026-41210
Immediate Actions Required
- Upgrade all Moonlight Qt installations to version 6.2.0 or later, available from the GitHub Release v6.2.0 page.
- Instruct users not to initiate streaming sessions to untrusted or unknown GameStream hosts until the upgrade is complete.
- Review the GitHub Security Advisory GHSA-5rvh-v25g-vrgv for the authoritative vendor guidance.
Patch Information
The fix landed in two commits. GitHub Commit 3e24a7a hardens the vendored h264bitstream parser against malformed input, including the Exp-Golomb and NAL scan defects shown above. GitHub Commit b7adc70 imports only the minimal subset of h264bitstream required for SPS fixups, reducing attack surface. Both changes ship in Moonlight Qt 6.2.0.
Workarounds
- Restrict outbound GameStream traffic at the network perimeter to known internal host IP addresses.
- Pair Moonlight clients only with trusted hosts on the local network and disable pairing with hosts reachable over the public internet.
- Where upgrade is not immediately possible, avoid initiating streaming sessions until the client is updated to 6.2.0.
# Verify installed Moonlight Qt version (Linux example)
moonlight-qt --version
# Expected output for a patched installation:
# Moonlight 6.2.0 (or later)
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

