A critical pre-authentication vulnerability affecting the local wireless communication architecture of the Nintendo Switch console allows an unauthenticated attacker within physical Wi-Fi range to trigger a stack-based buffer overflow and hijack instruction pointers. Tracked under disclosure record NINTENDO-SWITCH-DHCP-RCE and detailed in HackerOne vulnerability disclosure report #3770768, the flaw resides in the console's implementation of the local ad-hoc networking daemon used to manage multiplayer sessions.

Because the vulnerable daemon handles initial connection establishment before credentials, user pairing, or cryptographic session keys are negotiated, exploitation requires zero user interaction. An attacker within radio frequency proximity need only transmit malformed wireless packets to a Switch running active local multiplayer communications to destabilize the system state and seize execution control.

The Architecture of Nintendo Switch Local Networking (LDN and LP2P)

The Nintendo Switch operating system (Horizon microkernel) delegates ad-hoc console-to-console communications to proprietary network subsystems known as Local Ad-Hoc Network (LDN) and Local Peer-to-Peer (LP2P). These subsystems enable multiplayer gameplay, local asset synchronization, and lobby discovery without requiring an external internet connection or local wireless router.

When a console hosts or searches for a local session, it operates in one of two distinct roles:

  • Station (Client) Node: Scans local 802.11 channels, identifies broadcasting LDN access beacons, and initiates session requests to a host device.
  • Access Point / Group Owner Node: Establishes a software-enabled access point (SoftAP) and spins up an embedded, lightweight Dynamic Host Configuration Protocol (DHCP) daemon to provision private IP addresses, network masks, and subnet routing parameters to joining consoles.

Under normal operational parameters, joining stations transmit standardized broadcast DHCPDISCOVER packets followed by DHCPREQUEST messages containing variable-length configuration options. The vulnerability documented in HackerOne report #3770768 is situated directly inside the parser responsible for reading these incoming wireless configuration fields.

Technical Mechanics: Root Cause of the Stack Buffer Overflow

The core defect is classified as a classic pre-authentication stack-based buffer overflow. During the parsing of incoming DHCP option payloads within the embedded DHCP server daemon, the software fails to perform boundary verification before copying variable-length byte arrays into a statically allocated stack buffer.

Standard DHCP specifications define options using a Type-Length-Value (TLV) structure, where a single octet dictates the option type, an adjacent octet indicates the payload length, and subsequent bytes carry the associated parameter data. In the vulnerable Horizon implementation, the parsing routine extracts the length descriptor from the frame header and executes a memory copy operation into a destination buffer residing on the local thread stack. However, the logic fails to compare the incoming length byte against the fixed capacity allocated for the stack frame.

Vulnerability Flow

  • Packet Ingestion: The SoftAP interface captures raw wireless frames directed at standard DHCP network ports.
  • TLV Extraction: The parser iterates through the option list, encountering a specially crafted TLV field with an artificially inflated length parameter.
  • Memory Copy Without Bounds Validation: The service copies the payload into the destination buffer, overflowing past the allotted memory boundary on the thread execution stack.
  • Frame and Pointer Overwrite: The boundary overrun overwrites adjacent stack variables, structural canaries (if unmitigated or misconfigured), saved frame pointers, and the thread's return instruction pointer (PC/LR).

Because the overflow occurs within the context of the networking service handling raw frame reception, execution redirection occurs prior to any application-level handshake, authentication token validation, or console pairing ceremony.

Attack Surface and Deployment Impact

The attack surface for NINTENDO-SWITCH-DHCP-RCE is strictly bounded by physical Wi-Fi radio range, but within that perimeter, the requirement for user initiation is entirely eliminated. An adversary does not need to be an approved member of a friend list, nor does the target user need to accept an invitation dialog.

Vector ParameterTechnical Characteristic
Attack VectorAdjacent Network / Physical RF Proximity
Pre-requisite InteractionNone (Zero-Click)
Authentication RequiredNone (Pre-Authentication)
Affected SubsystemsNintendo Switch LDN / LP2P Wireless Subsystem
Failure ModeStack Corruption / Instruction Pointer Hijack

Impact is concentrated in scenarios where consoles actively utilize ad-hoc wireless functionality:

  • Public Gatherings and Esports Arenas: Crowded venues where multiple users engage in local competitive play offer an open RF medium where an attacker can passively monitor beacons and inject poisoned frames into active sessions.
  • Commuter Environments: In transit hubs or public transit where handheld devices are operated in local ad-hoc modes, consoles remain vulnerable to targeted packet injection from nearby unauthorized transmitters.
  • Session Browsing State: Whenever the console switches into host or join mode within software that invokes the underlying LDN libraries, the unauthenticated DHCP listener is opened to untrusted traffic.

Mitigation and Practical Response

Because the vulnerability stems from fundamental parsing defects within proprietary system services, temporary operational workarounds are required until underlying firmware revisions are fully accounted for.

  • Disabling Local Ad-Hoc Multiplayer: Organizations, competitive event organizers, and users operating in high-density untrusted physical spaces should restrict gameplay to wired Ethernet cradles or secure, encrypted wireless infrastructure networks rather than local peer-to-peer modes.
  • Aeroplane Mode Enforcement: Engaging Flight/Aeroplane Mode while running single-player titles or when navigating through transit areas ensures that the Wi-Fi transceiver does not automatically spin up soft-AP or beaconing daemons.
  • Firmware Verification: System administrators and users should monitor official Nintendo system update channels to ensure that operating system components and wireless microcode updates addressing LDN services are promptly applied.

Remaining Technical Unknowns

While the primary mechanisms of the stack overflow are established via HackerOne report #3770768, several implementation details remain undisclosed in the public record:

  • Specific OS Version Matrix: The public disclosure entry does not define the precise historical firmware version in which the bug was introduced, nor does it catalog all past releases vulnerable to the condition.
  • Post-Hijack Sandbox Escapes: While the advisory confirms that instruction pointers can be hijacked within the context of the DHCP daemon, the report does not provide details on whether the compromised process runs with elevated microkernel permissions or if an attacker requires secondary privilege escalation chains to bypass Horizon OS process sandboxing.
  • Public CVSS Metric Assignment: As of the disclosure notice, an official Common Vulnerability Scoring System (CVSS) vector and base score have not been published by a CVE Numbering Authority (CNA).