Pick
nginx2root: Five nginx memory corruption bugs and a Linux kernel flaw enable code execution and root escalation
·2026.11.20 10:58
Key point
F5, nginx.org, Xint, and Wiz Research disclosed five nginx memory corruption bugs and a Linux kernel SCTP flaw, enabling unauthenticated code execution as the nginx worker and subsequent root privilege escalation.
Details
- F5 and nginx.org disclosed five memory corruption bugs in nginx, named 'nginx2root' by Xint, alongside a Linux kernel SCTP use-after-free flaw. The nginx bugs allow unauthenticated attackers to crash workers or execute code as the nginx worker process.
- The kernel bug, present since Linux 4.15 (2018), allows an attacker who already has code execution as the nginx worker to gain root privileges on the host, even from within Docker containers.
- CVE-2026-123007, an HTTP/2 flow control integer overflow, affects nginx versions 1.9.5 and later (since 2015). Exploitation requires approximately 112 GB of traffic to trigger out-of-bounds writes.
- Cloudflare proxy-protected origins are shielded from the most severe HTTP/2 and HTTP/3 attacks because the edge terminates these protocols, but direct origin access or unpatched non-proxied servers remain vulnerable.
Vulnerability Details
- CVE-2026-123007 (HTTP/2): Integer overflow in flow control refund logic; affects 1.9.5+; requires ~8.6 billion WINDOW_UPDATE frames.
- CVE-2026-123633 (HTTP/2): Use-after-free in reusable connection handling; affects 1.19.7+; triggered by worker_connections shortage.
- CVE-2026-121810 (HTTP/3/QUIC): Use-after-free in stream creation; affects 1.25.0+; triggered by proxy_pass.
- CVE-2026-123634 (Resolver): Use-after-free in resolver list; affects 0.6.18+; triggered by variable proxy_pass with subrequests.
- CVE-2026-113425 (Mail Proxy): Use-after-free in auth_http; affects 0.5.33+; triggered by client write failure during authentication.
Mitigation and Patching
- Update to nginx 1.30.7 or 1.31.9 (or vendor builds) and restart the service; reload is insufficient.
- Temporary mitigations include disabling HTTP/2/3, removing QUIC listeners, and binding mail listeners to trusted networks.
- Block SCTP module loading via /etc/modprobe.d/ to prevent kernel exploitation until a patch is available.
- Cloudflare Tunnel, IP allow-lists, and mTLS are recommended to restrict origin access to Cloudflare only.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.