Technology 7 min read

Security Researcher Demonstrates Software-Only Userland Jailbreak for Switch 2 via Interpreter Vulnerability

Published on October 23, 2026

In a major milestone for video game hardware security research and console reverse engineering, independent security researcher Sammy Hajhamid has demonstrated a functional, software-only partial jailbreak targeting the Switch 2 architecture. The exploit, publicly documented under the repository project name "ns2jb," establishes userland code execution on the system, unlocking the ability to run custom homebrew applications, reverse engineer and modify game software, export save data directly from internal storage, and interact directly with system hardware peripherals through Memory-Mapped Input/Output interfaces. The breakthrough represents one of the most significant public security developments for the hardware platform to date, relying entirely on software vulnerabilities without requiring physical hardware modifications, chip installations, or solder-based glitching methods.

The path to code execution relies on an unexpected entry point: the original Nintendo Switch release of SmileBasic 4, a popular interpreted programming environment developed by SmileBoom that allows users to create and execute custom applications directly on console hardware. SmileBasic has long served as a sandbox environment for novice programmers on handheld and desktop consoles, providing high-level commands to draw graphics, play audio, and process user inputs. However, because code interpreters operate as intermediary translation layers between high-level user scripts and lower-level system APIs, they inherently present a broad attack surface for security researchers probing for memory management flaws and logic errors.

Hajhamid, who is widely known throughout the security and reverse engineering communities under the online moniker Pepsipu, achieved the userland compromise through a combination of automated testing methodology, artificial intelligence, and physical test automation. According to technical documentation released alongside the project, Hajhamid leveraged OpenAI’s Codex platform to assist in analyzing and probing the internal logic of the SmileBasic 4 language interpreter. To facilitate continuous testing over an intensive two-week research period, Hajhamid constructed a custom automated testing harness connected directly to the console. The setup utilized automated hardware inputs to feed commands via USB into the running console, monitored graphical output via an HDMI capture rig to evaluate system behavior, and incorporated a smart home Bluetooth light switch mechanism configured to physically toggle power to the system whenever the console encountered a fatal hardware crash or kernel panic.

This continuous automated testing regime eventually uncovered a critical memory corruption flaw within the interpreter’s array management logic. Specifically, the test harness identified a 32-bit integer overflow vulnerability that manifests when elements are removed from a dynamically allocated array within SmileBasic. In software engineering, integer overflows occur when an arithmetic operation attempts to create a numeric value that exceeds the maximum memory boundary allocated for its integer representation. When removing items from an array in the targeted version of SmileBasic, the internal calculation tracking array length and boundary offsets wraps around improperly, corrupting internal memory tracking parameters. This boundary calculation error directly exposes an internal array pointer, granting an attacker primitive read and write access to adjacent regions of system memory previously restricted by the runtime environment.

While obtaining memory read and write primitives inside an application runtime provides an initial foothold, standard operating system design isolates application processes within individual sandboxed memory spaces. To extend the capabilities of the exploit beyond the constrained limits of the SmileBasic application process, Hajhamid initiated a secondary exploration phase focused on the system’s internal system modules, commonly referred to as sysmodules. These background services run concurrently with user applications and handle core OS functionalities such as network communication, storage management, audio mixing, and peripheral input processing.

By analyzing the interfaces used by the system to coordinate background tasks, Hajhamid identified a secondary memory safety flaw—a classic buffer overflow—within the console’s dedicated FileSystem services module. Buffer overflows occur when an application writes more data to a designated storage buffer than it was configured to hold, causing adjacent memory locations to be overwritten. In this instance, triggering the buffer overflow within the FileSystem module exposed a cached data pointer utilized by system services. Exploiting this exposed pointer granted arbitrary read and write privileges across additional system memory regions. By manipulating these newly accessible memory structures, Hajhamid was able to execute privileged filesystem actions and ultimately force the system to accept native code execution by impersonating a legitimate, trusted filesystem process.

Despite the broad access granted by the userland compromise, the current implementation operates under specific technical constraints. The exploit is classified as a "tethered" jailbreak, meaning that the software modification does not permanently persist within the console’s non-volatile flash memory across system reboots. To initialize the environment and elevate system privileges, the console must be connected over a shared local network to an external workstation running a custom Node.js helper package on either macOS or Linux operating systems. This external control node assists in coordinating the exploit chain, managing network sockets, and delivering execution payloads into the target memory space during the initialization sequence.

The operational parameters achieved through this userland execution environment represent a massive leap forward for legitimate homebrew developers, data preservationists, and game modders. Unlike hardware-based exploits that focus on gaining total system control or bypassing digital rights management to enable software piracy, userland access provides a controlled sandbox for executing unsigned code without granting full, unmonitored access to the deep kernel or secure enclave cryptoprocessors. Within this userland context, developers can write original applications, construct system diagnostic utilities, and interface with hardware modules directly via Memory-Mapped Input/Output (MMIO). MMIO configuration allows custom software to interact directly with system buses, display engines, and peripheral controllers by reading and writing to specific, hardware-bound memory addresses, enabling low-level control over hardware components without requiring custom kernel drivers.

To demonstrate the real-world capabilities of the "ns2jb" jailbreak, Hajhamid released public proof-of-concept demonstrations showing customized character models and modified assets running natively inside Mario Kart World. The demonstration showcased how custom code injected via userland memory access can dynamically modify active game assets, render pipelines, and texture buffers in real time without triggering crash handlers or integrity checks. Following the initial public release of the exploit source code and accompanying technical write-ups, other independent developers within the homebrew ecosystem rapidly began utilizing the framework to demonstrate additional functionality. Security researchers and hobbyist programmers on developer forums and social platforms quickly reported success running preliminary software tools, including early-stage utility interfaces and experimental graphics rendering demos. Among the notable early milestones reported by the community was the execution of a functional Vulkan GPU rendering pipeline running entirely within the exploited userland process space, demonstrating that complex third-party graphics tasks can be offloaded directly to the console’s graphics hardware.

The emergence of the "ns2jb" jailbreak highlights the growing role of automated testing tools and modern artificial intelligence utilities in modern vulnerability research. By pairing language models capable of rapid code analysis with automated physical testing harnesses, individual security researchers can compress month-long fuzzing campaigns into short, highly efficient discovery windows. As the homebrew community continues to analyze the open-source release of the exploit framework, attention is expected to turn toward expanding developer documentation, refining local network host scripts, and constructing standardized software development kits (SDKs) to streamline third-party application creation. At the same time, because the underlying vulnerability chain relies entirely on software-level memory flaws within an application interpreter and system service modules, platform maintainers possess the capability to address and remediate the underlying logic errors through future system software updates and application patches, setting up a familiar technical dynamic between security researchers and platform engineers.

Leave a Reply

Your email address will not be published. Required fields are marked *