Revisiting: Stack pivot, W^X break – in the context of PixelSmash A new exploit technique bypasses OpenBSD's W^X protection on arm64 hardware lacking PAC, BTI, or hardware CFI, using a file-backed RX mapping to achieve code execution. The technique, demonstrated in the context of CVE-2026-8461 (PixelSmash), a heap out-of-bounds write in FFmpeg's MagicYUV decoder, completes an exploit chain from heap corruption to remote code execution on affected systems. Skip to site navigation Press enter Revisiting: Stack pivot, W^X break — in the context of CVE-2026-8461 PixelSmash nibletz Thu, 25 Jun 2026 15:07:28 -0700 Hello, Disclaimer: I used Claude to organize my thoughts on this. This is a follow-up to the thread from January 1 which raised two separate issues: a MAP STACK bypass via stack pivot jumpback, originally discussed by Ali Polatel on oss-security 2 , and a W^X break via file-backed RX mapping, originally reported against HardenedBSD 3 and confirmed working on OpenBSD in the same thread. The discussion in that thread concluded with the observation that "the burglar is already inside the house" — implying these techniques require prior code execution and are therefore not independently significant. I'd like to offer a concrete counterexample to that framing. CVE-2026-8461 PixelSmash , disclosed last week, is a heap out-of-bounds write in FFmpeg's MagicYUV decoder affecting any application using libavcodec, including applications that process untrusted AVI, MKV, or MOV files. JFrog demonstrated remote code execution against Jellyfin on Linux by corrupting the AVBuffer.free function pointer via a crafted 50KB media file delivered to an automated library scan pipeline — no user interaction beyond file delivery required. On OpenBSD, several mitigations raise the bar considerably: omalloc's heap layout randomization, ASLR, RetGuard, IBT/BTI on capable hardware, pinsyscalls, mimmutable, and library relinking collectively make the Linux exploit technique not directly portable. However, on arm64 hardware without PAC, BTI, or hardware-enforced CFI — which describes a wide range of commonly deployed arm64 hardware — the two techniques from the January thread become directly relevant as the missing links completing a realistic exploit chain from that initial heap corruption primitive. W^X bypass via file-backed RX mapping The original HardenedBSD GitLab issue 3 is no longer accessible — HardenedBSD has since migrated from GitLab to Radicle 4 . However, the technique was confirmed working on OpenBSD arm64 in the January thread, and a subsequent update by the author confirmed it pops a shell despite pinsyscalls via a libc trampoline. The PoC authored by Ali Polatel < email protected , reproduced here for archival purposes as the original link is broken is as follows: c // poc wx bypass.c // // Proof-of-Concept: W^X bypass via file-backed RX mapping // Author: Ali Polatel < email protected include