# Understanding the Root Cause of CVE-2026-119618

Apache mod_http2 assign_headers grows req->headers from a c2 worker using c1's mutex-free allocator, racing to hand one memnode to two pools.

- Payout: Research
- Severity: high
- Program: Apache HTTP Server
- Found by (vendor credit): Anthropic's OSS Scanner, as vulnerability ANT-2026-MAPKT6MZ, Anthony Weems and Simon Scannell of the Google Cloud Vulnerability Research
- Write-up by: Michelle Rhodes
- Disclosed: 2026-11-24
- CVE: CVE-2026-119618
- Write-up quality: 8/10
- Original: https://www.praetorian.com/blog/cve-2026-119618-2/
- Library page: https://bugbountylibrary.com/r/blog%3Apraetorian-com-blog-cve-2026-119618-2
- Tags: area:web domain:web impact:dos impact:integrity kind:research platform:research sev:high tech:linux technique:race-window technique:source-review vuln:dos vuln:memory-corruption vuln:race-condition

**Target:** Apache httpd 2.4.70 mod_http2 request header table
**Root cause:** assign_headers inserts a zero Content-Length into req->headers, whose backing array is allocated from the stream pool sharing c1's mutex-free apr_allocator_t; a table resize reaching apr_palloc races c1-side allocations, corrupting the free-list and issuing one memnode to two pools.
**Steps:**
1. Send a non-CONNECT HEADERS frame with END_STREAM, Content-Type present, no Content-Length, so assign_headers inserts Content-Length: 0.
2. Fill req->headers table to nelts == nalloc (80 entries) so apr_table_setn triggers do_table_push/apr_array_push_noclear doubling to 160 entries.
3. Ensure the 3840-byte apr_palloc cannot be served from stream pool nodes, forcing allocator_alloc on the shared mutex-free apr_allocator_t.
4. Co-batch a victim-stream HEADERS frame so c1-side stream work allocates/frees through the same allocator concurrently.
5. Race corrupts free-list; same memnode lands in two pools; later pool destroy yields use-after-free and crash in strlen/apr_pool_destroy.
**How found:** Read the one-line fix diff moving the Content-Length insert from req->headers to r->headers_in, then traced apr_table_setn growth into apr_palloc and the allocator hierarchy to see req->headers inherits c1's mutex-free allocator.
**Exploitation:** Attacker co-batches a bodyless Content-Type/no-Content-Length trigger with a victim-stream HEADERS on the same connection; table-growth copy overwrites victim apr_pool_t/h2_stream or vice versa, and destroying either aliased pool frees a memnode still in use. Team demonstrated remote pointer disclosure and libapr base recovery on 2.4.70; full RCE chain not yet achieved.
**Escalation:** Second-order use-after-free: shared memnode returned to allocator while other stream holds live objects, enabling further corruption toward RCE.
**Insight:** When a fix swaps one struct for another, diff which pool/allocator each belongs to: shared-allocator writes from a worker thread are the race surface, and table growth (nelts==nalloc doubling) is the allocation that reaches it.

