---
title: "Memory safety"
description: "Memory-safety bugs and mitigations, safe languages for security"
url: "https://swe.quest/tags/memory-safety?per=96"
---

# Memory safety

Topic in Security: Memory-safety bugs and mitigations, safe languages for security

By difficulty: [Easy](https://swe.quest/tags/memory-safety.md?difficulty=easy) · [Medium](https://swe.quest/tags/memory-safety.md?difficulty=medium) · [Hard](https://swe.quest/tags/memory-safety.md?difficulty=hard)

Posts 1–33 of 33, page 1 of 1, newest first.

## 2026-11-20

- [How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)](https://swe.quest/articles/how-cloudflare-waf-protects-against-ruby2shell-cve-2026-132825-7727483822350470.md): Cloudflare · 2026-11-20 · Medium · 6 min read · Vulnerability research, Ruby, Application security, Memory safety
  ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution.
- [nginx2root: Five new nginx vulnerabilities, and how Cloudflare protects origins from the worst of them](https://swe.quest/articles/nginx2root-five-new-nginx-vulnerabilities-and-how-cloudflare-protects-origins-d1432ea077df3a49.md): Cloudflare · 2026-11-20 · Medium · 22 min read · Vulnerability research, Memory safety, Networking, CDN & edge, Security
  nginx2root is five memory-corruption bugs in nginx (HTTP/2 flow-control integer overflow, plus use-after-frees in HTTP/2 and HTTP/3 upstream handling, the resolver with subrequests, and the mail proxy), paired with an unpatched Linux SCTP use-after-free that escalates a worker compromise to root, even from inside Docker.

## 2026-11-18

- [How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938)](https://swe.quest/articles/how-cloudflare-waf-helps-protect-against-java4shell-cve-2026-114938-001767259b988fdd.md): Cloudflare · 2026-11-18 · Medium · 9 min read · Vulnerability research, Memory safety, Java & JVM, Application security
  Java4Shell (CVE-2026-114938, CVSS 9.2) is a memory-corruption bug in OpenJDK's AVX-512 Base64 decoder intrinsic.

## 2026-11-13

- [Crystal 1.22.3 is released!](https://swe.quest/articles/crystal-1-22-3-is-released-eaa59fe6cd70a78c.md): Crystal Blog · 2026-11-13 · Medium · 2 min read · Application security, Networking, Memory safety
  Crystal 1.22.3 is a patch release of 14 changes from 4 contributors, focused on security fixes and regressions.

## 2026-10-21

- [php2shell: patching PHP is easy, finding it is the hard part](https://swe.quest/articles/php2shell-patching-php-is-easy-finding-it-is-the-hard-part-9a45e6f935b2d2f4.md): Sourcegraph · 2026-10-21 · Medium · 5 min read · PHP, Vulnerability research, Supply chain security, Incidents & postmortems, Memory safety
  PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two unauthenticated RCE memory-safety bugs (CVE-2026-109618/109619, dubbed php2shell) in the request lifecycle, reachable on mod\_php via a crafted multipart POST before application code runs.

## 2026-09-30

- [Memory safety for Postgres extensions in C/C++](https://swe.quest/articles/memory-safety-for-postgres-extensions-in-c-c-b6883b8eb3b1e33d.md): ClickHouse · 2026-09-30 · Hard · 4 min read · PostgreSQL, Memory safety, C & C++, Memory management
  Postgres's palloc/MemoryContext allocation and setjmp/longjmp-based error handling clash with C++ new/delete, destructors and exceptions: longjmp skips destructors (undefined behavior), exceptions bypass PG\_CATCH, and an uncaught exception aborts the process and forces cluster-wide crash recovery.

## 2026-09-22

- [Fearless SIMD v1.0 is here](https://swe.quest/articles/fearless-simd-v1-0-is-here-423b1f4fe64019b8.md): Linebender · 2026-09-22 · Easy · 4 min read · Rust, Performance engineering, Memory safety, Open source
  Fearless SIMD v1.0 is a Rust crate for SIMD with no ad-hoc unsafe code.

## 2026-09-09

- [A “proof” of Fermat’s Last Theorem that fits the margin](https://swe.quest/articles/a-proof-of-fermat-s-last-theorem-that-fits-the-margin-b44a4aebaeb677ac.md): Trail of Bits · 2026-09-09 · Hard · 2 min read · Vulnerability research, Formal methods, Memory safety, Compilers
  A bug in Lean's String.Pos.Raw.extract let a bogus "proof" of Fermat's Last Theorem typecheck.

## 2026-08-31

- [OEMpocalypse Now](https://swe.quest/articles/oempocalypse-now-03c3b44da052b656.md): Calif · 2026-08-31 · Hard · 1 min read · Vulnerability research, Mobile, Security, Memory safety, Sandboxing & isolation
  A root strategy for Android targets code that Samsung, Xiaomi and Oppo build on top of Android—One UI, HyperOS and ColorOS—rather than generic Linux kernel bugs or chipset drivers, so one approach can span each OEM's lineup regardless of silicon.
- [This Month in Ladybird - August 2026](https://swe.quest/articles/this-month-in-ladybird-august-2026-e7183d3f3eaa522b.md): Ladybird · 2026-08-31 · Hard · 13 min read · Browsers, Performance engineering, Rust, Memory safety, CSS
  Ladybird's August 2026 progress centres on a sustained engine performance push.

## 2026-08-24

- [Intent to Ship: JPEG XL](https://swe.quest/articles/intent-to-ship-jpeg-xl-8daff64ea64e35d6.md): Mozilla Hacks · 2026-08-24 · Easy · 3 min read · Browsers, Web performance, Rust, Memory safety
  Firefox intends to ship JPEG XL support, built on jxl-rs, a Rust decoder written by Google Research in place of the earlier 100,000-line multithreaded C++ library to reduce attack surface.

## 2026-08-06

- [The Taking of FreeBSD One Two Three](https://swe.quest/articles/the-taking-of-freebsd-one-two-three-2232035e5e03b6d5.md): Calif · 2026-08-06 · Hard · 4 min read · Vulnerability research, Security, Operating systems, Memory safety
  FreeBSD's CTL High Availability mode exposes three unauthenticated remote root vulnerabilities: an arbitrary kernel read/write primitive in the HA DATA channel, a write-only pointer bug in DATAMOVE, and a heap overflow in the DATAMOVE scatter-gather copy loop.

## 2026-08-05

- [The WordPress Chain Massacre](https://swe.quest/articles/the-wordpress-chain-massacre-f4c4d6206cb6b273.md): Calif · 2026-08-05 · Hard · 8 min read · Vulnerability research, Memory safety, PHP, Linux
  wp2root extends AssetNote's wp2shell pre-auth WordPress RCE from constrained PHP execution to native code execution and Linux root.

## 2026-07-31

- [This Month in Ladybird - July 2026](https://swe.quest/articles/this-month-in-ladybird-july-2026-7519e340d470d9a1.md): Ladybird · 2026-07-31 · Medium · 11 min read · Browsers, Runtimes & VMs, Rust, Compilers, Memory safety
  Ladybird added private browsing, per-profile storage and sandboxing, undo/redo and rich-text editing, geolocation, and working WebAudio in July 2026, and moved most of LibWeb's style and layout pipeline to Rust.

## 2026-07-27

- [Apple MIE exploitation challenge](https://swe.quest/articles/apple-mie-exploitation-challenge-6bb99bffe40b464f.md): Calif · 2026-07-27 · Hard · 8 min read · Vulnerability research, Memory safety, Operating systems, Security
  A public bypass of Apple MIE on macOS 26.4.1 chains two kernel bugs: an SMB create-context type confusion (CVE-2026-64704) in which a malicious server replies with a lease context and the parser reinterprets the client's Resolve ID object as a lease, and a WebDAV information leak (CVE-2026-64699) where the kext copies the full requested length from an uninitialized buffer after accepting an empty successful HTTP response.

## 2026-07-17

- [Journey to Root, Episode I: The Maglev King](https://swe.quest/articles/journey-to-root-episode-i-the-maglev-king-49a6ac5d378286bb.md): Calif · 2026-07-17 · Hard · 46 min read · Vulnerability research, Browsers, Memory safety, Compilers, AI for coding
  A three-person team used AI assistants to discover and weaponize a five-vulnerability Google Chrome exploit chain, including a Maglev representation-confusion bug that causes incorrect write-barrier elision, a JavaScript Promise Integration sandbox escape, and an ExternalOneByteString information leak.

## 2026-07-08

- [Rewriting Bun in Rust](https://swe.quest/articles/rewriting-bun-in-rust-9aa67adf0dcbde60.md): Bun · 2026-07-08 · Medium · 29 min read · Rust, Zig, AI for coding, Refactoring & migrations, Memory safety
  Bun, a 535k-line Zig JavaScript runtime, was mechanically ported to Rust over 11 days using about 50 continuously running Claude Code workflows.

## 2026-06-30

- [This Month in Ladybird - June 2026](https://swe.quest/articles/this-month-in-ladybird-june-2026-2bd6395fec4fd5e9.md): Ladybird · 2026-06-30 · Easy · 6 min read · Browsers, Sandboxing & isolation, Memory safety, Runtimes & VMs, WebAssembly
  Ladybird's June 2026 progress adds file downloads, an about:history page, DevTools storage and CSS rule inspection, and pitch-preserving media playback speed using Chromium's WSOLA algorithm.

## 2026-06-12

- [Swift at Apple: Migrating the TrueType Hinting Interpreter](https://swe.quest/articles/swift-at-apple-migrating-the-truetype-hinting-interpreter-caf2fb565c1b9a8c.md): Swift.org · 2026-06-12 · Medium · 9 min read · Swift, Memory safety, Performance engineering, Refactoring & migrations, Testing
  Apple rewrote the TrueType font hinting bytecode interpreter from C to memory-safe Swift for its Fall 2025 OS releases.

## 2026-06-02

- [iddqd, or the hardest kind of unsafe Rust](https://swe.quest/articles/iddqd-or-the-hardest-kind-of-unsafe-rust-50456dacfa60840a.md): Oxide · 2026-06-02 · Hard · 23 min read · Rust, Memory safety, Data structures
  iddqd is a Rust map library, used in Oxide's Omicron control plane, where keys are borrowed from the values themselves.

## 2026-05-13

- [A 0-click exploit chain for the Pixel 10: When a Door Closes, a Window Opens](https://swe.quest/articles/a-0-click-exploit-chain-for-the-pixel-10-when-a-door-closes-a-window-opens-0c88e2681240c6b5.md): Google Project Zero · 2026-05-13 · Hard · 5 min read · Vulnerability research, Mobile, Linux, Memory safety
  Project Zero ported its Pixel 9 zero-click chain to the Pixel 10 by re-offsetting the Dolby UDC exploit (CVE-2025-54957), overwriting dap\_cpdp\_init instead of \_\_stack\_chk\_fail because RET PAC replaced stack protectors.

## 2026-04-10

- [Bringing Rust to the Pixel Baseband](https://swe.quest/articles/bringing-rust-to-the-pixel-baseband-9cf93d6447e3d2be.md): Google Online Security Blog · 2026-04-10 · Hard · 8 min read · Rust, Memory safety, Build systems, Mobile, DNS
  Pixel 10 ships the first memory-safe code in Pixel's cellular baseband: a Rust DNS response parser built on hickory-proto, replacing a risky untrusted-input parser in the modem firmware.

## 2026-01-27

- [Rust at Scale: An Added Layer of Security for WhatsApp](https://swe.quest/articles/rust-at-scale-an-added-layer-of-security-for-whatsapp-fa325ff993e04dbf.md): Meta Engineering · 2026-01-27 · Easy · 5 min read · Memory safety, Rust, Application security, Communications, Mobile
  WhatsApp rewrote its cross-platform media consistency library, wamedia, from C++ to Rust and now ships it to billions of devices and browsers across Android, iOS, Mac, Web and wearables, which Meta calls the largest client-side Rust deployment it knows of.

## 2025-10-25

- [Synadia and TigerBeetle Pledge $512,000 to the Zig Software Foundation](https://swe.quest/articles/synadia-and-tigerbeetle-pledge-512-000-to-the-zig-software-foundation-124e30142ae18e3c.md): TigerBeetle · 2025-10-25 · Easy · 8 min read · Zig, Language design, Memory safety, Open source
  Synadia and TigerBeetle are jointly donating $512,000 to the Zig Software Foundation over two years, with no strings attached.

## 2024-09-24

- [Announcing Stable V8 Bindings for Rust](https://swe.quest/articles/announcing-stable-v8-bindings-for-rust-01bc1bc22c1cbdef.md): Deno · 2024-09-24 · Medium · 4 min read · Rust, Runtimes & VMs, JavaScript, Memory safety
  Rusty V8, Deno's zero-overhead Rust bindings to V8's C++ API, is now stable and skips 1.0 to align with Chrome versioning, starting at 129.0.0.

## 2024-04-04

- [The V8 Sandbox](https://swe.quest/articles/the-v8-sandbox-705346b1934809ad.md): V8 · 2024-04-04 · Hard · 11 min read · Sandboxing & isolation, Runtimes & VMs, Memory safety, Browsers, Vulnerability research
  The V8 Sandbox is a lightweight, in-process software sandbox that isolates the V8 heap so memory corruption from engine bugs cannot spread to the rest of the renderer process.

## 2023-09-01

- [Oxidizing OCaml: Data Race Freedom](https://swe.quest/articles/oxidizing-ocaml-data-race-freedom-67442324c35f0e1c.md): Jane Street Tech Blog · 2023-09-01 · Hard · 15 min read · Functional programming, Type systems, Concurrency, Language design, Memory safety
  Jane Street's OCaml extensions use a new \`sync\` mode to make data races statically unrepresentable in multicore OCaml 5.

## 2022-10-12

- [Porting the Solana eBPF JIT compiler to ARM64](https://swe.quest/articles/porting-the-solana-ebpf-jit-compiler-to-arm64-2640f585a04d44ad.md): Trail of Bits · 2022-10-12 · Hard · 11 min read · Compilers, Runtimes & VMs, Rust, Sandboxing & isolation, Memory safety
  Solana's RBPF JIT compiler, which translates eBPF smart contracts to native code on validators, was ported from x86-only to ARM64, and its x86 backend gained Windows support.

## 2022-07-20

- [Using Hermes’s Quicksort to run Doom: A tale of JavaScript exploitation](https://swe.quest/articles/using-hermes-s-quicksort-to-run-doom-a-tale-of-javascript-exploitation-218717db846741cf.md): Meta Engineering · 2022-07-20 · Hard · 12 min read · Vulnerability research, Runtimes & VMs, JavaScript, Memory safety, C & C++
  A fuzzer-found bug in Hermes's stable Quicksort let a comparator callback grow the array during Array.prototype.sort, so the fixed-size index vector was read out of bounds.

## 2022-03-23

- [Another vulnerability in the LPC55S69 ROM](https://swe.quest/articles/another-vulnerability-in-the-lpc55s69-rom-ca1b0ad8ae65f135.md): Oxide · 2022-03-23 · Hard · 5 min read · Vulnerability research, Hardware, Memory safety, Security
  The LPC55S69 boot ROM's In-System Programming (ISP) parser for SB2 signed updates has a buffer overflow (CVE-2022-22819).

## 2021-12-06

- [WebAssembly and Back Again: Fine-Grained Sandboxing in Firefox 95](https://swe.quest/articles/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95-d23a4c9673130b46.md): Mozilla Hacks · 2021-12-06 · Medium · 4 min read · Sandboxing & isolation, WebAssembly, Browsers, Memory safety, Supply chain security
  Firefox 95 ships RLBox, a fine-grained sandboxing technique that compiles third-party C/C++ libraries (Graphite, Hunspell, Ogg, with Expat and Woff2 following in 96) to WebAssembly and then back to native code, so untrusted code runs in-process but cannot jump to unexpected code or touch memory outside its region.

## Unknown date

- [Project Naptime: Evaluating Offensive Security Capabilities of Large Language Models](https://swe.quest/articles/project-naptime-evaluating-offensive-security-capabilities-of-large-language-d78da2e9f2fa9e00.md): Google Project Zero · Hard · 25 min read · Vulnerability research, AI agents, Evaluation, LLMs, Memory safety
  Project Naptime is Google Project Zero's LLM agent framework for vulnerability research, built on a few principles: room for reasoning, an interactive environment, specialised tools (code browser, sandboxed Python, an AddressSanitizer-instrumented debugger, and a reporter), automatic crash-based verification, and sampling over many independent trajectories.
- [Enabling QR codes in Internet Explorer, or a story of a cross-platform memory disclosure](https://swe.quest/articles/enabling-qr-codes-in-internet-explorer-or-a-story-of-a-cross-platform-memory-9e0e377c9a716769.md): Google Project Zero · Hard · 23 min read · Vulnerability research, Browsers, Memory safety
  A shared bug in PostScript font engines let a Charstring program read uninitialized memory.

Same list as RSS: [https://swe.quest/feed.xml?tag=memory-safety](https://swe.quest/feed.xml?tag=memory-safety). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
