-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NEFARIOUSPLAN-CANONICAL-V1 {"body_md":"## The PoC is one stream and twenty headers\n\n`http2_bomb.py` ships one function that talks to a target. `run_probe` opens a TCP socket, wraps it with an `ssl.SSLContext` that advertises `[\"h2\"]` via `set_alpn_protocols`, and raises if the server negotiates anything else. It instantiates an `h2.connection.H2Connection`, sends the client preface and the initial SETTINGS frame, picks the next available stream id, and assembles a request:\n\n```python\nrequest_headers = [\n (\":method\", \"GET\"),\n (\":scheme\", \"https\"),\n (\":authority\", make_authority(host, port)),\n (\":path\", path),\n]\nrequest_headers.extend(\n (f\"x-fooooooo-{index:04d}\", \"a\")\n for index in range(regular_header_count)\n)\n```\n\n`regular_header_count` is the user-facing knob, default twenty. The four pseudo-headers and twenty regulars get packed into a single `HEADERS` frame with `end_stream=True`. The script then reads frames off the socket and prints each `ResponseReceived`, `DataReceived`, `StreamEnded`, `StreamReset`, or `ConnectionTerminated` event the `h2` library hands it. That is the whole script.\n\nAt twenty headers, the encoded request is a kilobyte at most. The HEADERS frame fits inside one TLS record. The server responds, the stream ends, the script prints `[+] Stream 1 ended normally.` and exits. The PoC is shaped exactly the way its argparse description describes it: a bounded probe. Run it, the server replies, you confirm the target speaks HTTP/2. Nothing else.\n\nWhat the script does not do: it does not loop. It does not open a second connection. It does not send a second stream on the first connection. It does not split headers across `CONTINUATION` frames itself, although the `h2` library will fragment automatically once the encoded list exceeds the negotiated `MAX_FRAME_SIZE`. The script does not crank the count. The number is on the command line.\n\nThe number is the entire vulnerability.\n\n## HTTP.sys is the listener every HTTP service on the box shares\n\n`HTTP.sys` is the kernel driver Microsoft introduced in Windows Server 2003 to share an HTTP listener across user-mode services. The image lives at `%SystemRoot%\\System32\\drivers\\http.sys`. It owns ports 80 and 443 at the kernel layer. User-mode services register URL prefixes through the HTTP Server API by calling `HttpAddUrl`, and `HTTP.sys` routes inbound requests to whichever process is waiting on `HttpReceiveHttpRequest` for that prefix.\n\nThe list of consumers is long. Every IIS site. Every WCF service with an HTTP or HTTPS transport. Every .NET application that uses `System.Net.HttpListener`. WSUS, the patching service that other Windows boxes pull updates from. WinRM, which is how PowerShell remoting and large parts of the management plane reach the box. BranchCache. SSDP. The Print Spooler's IPP listener. Reporting Services. The DCOM-over-HTTP endpoint. They all hand their URL prefixes to `HTTP.sys` and wait for it to dispatch. The HTTP envelope is parsed once, in the kernel, before any of them see it.\n\nThe unit that processes the inbound HTTP/2 HEADERS frame in CVE-2026-49160 is the kernel driver. The unit that allocates pool memory per parsed header is the kernel driver. The unit whose availability is impacted by an attacker who sends enough of them is the kernel driver, which means every consumer on the box at once.\n\nThe NVD description for CVE-2026-49160 reads, in full: \"Uncontrolled resource consumption in HTTP/2 allows an unauthorized attacker to deny service over a network.\" The string \"kernel\" does not appear. The string \"HTTP.sys\" does not appear. The string \"IIS\" does not appear. The reader is left to infer, from the affected-products list of every supported Windows build going back to Server 2016, where the listener lives.\n\nThe listener lives in ring zero.\n\n## HTTP/2 is on by default for IIS HTTPS bindings since Server 2016\n\nWindows Server 2016 was the release that gave `HTTP.sys` HTTP/2 support. The IIS team did not ship it behind a feature flag, did not gate it on an explicit opt-in, and did not require the administrator to configure a setting. Any HTTPS binding that survives ALPN negotiation with a client offering `h2` will speak HTTP/2. Every internet-facing IIS site running on Server 2016, 2019, 2022, or 2025 in 2026 has this enabled by default unless the operator disabled it via the documented registry knob, which most operators have not done.\n\n`http2_bomb.py` opens its TLS context with `context.set_alpn_protocols([\"h2\"])` and refuses to proceed when the negotiated protocol is anything else. The set of targets the script is interested in is the set IIS exposes by default. The author did not need to ship target discovery. The target discovery is \"scan port 443, offer ALPN `h2`, see what answers.\"\n\n## The HTTP/2 spec named the defense in 2015\n\nRFC 7540, published in May 2015 as the original HTTP/2 specification, defined `SETTINGS_MAX_HEADER_LIST_SIZE` in section 6.5.2 as an advisory cap on the total decoded size of a header list an endpoint is willing to accept. The prose says so explicitly: \"This advisory setting informs a peer of the maximum size of header list that the sender is prepared to accept.\" A receiver that decides the inbound list exceeds its advertised cap is permitted to close the stream with `HEADER_LIST_TOO_LARGE`, or to tear the connection down before allocating further.\n\nThe setting is advisory because HPACK makes the wire size and the decoded size diverge. A peer cannot, in principle, know whether a given encoded HEADERS frame will exceed the cap until it decompresses. The receiver must therefore enforce its own cap during decompression and refuse to allocate further once the cap is reached. The defense is the receiver's responsibility.\n\nRFC 9113, which superseded RFC 7540 in June 2022, preserved the setting and tightened the prose. The defense has been in the spec for eleven years. CVE-2026-49160 is shipping in June 2026 because `HTTP.sys`'s implementation of that responsibility was not adequate. The class is \"kernel-mode HTTP parser allocates without bounding what it allocates for.\" The patch will close this instance. The class is older than the patch by eleven years.\n\n## HTTP.sys has been here before\n\nThe class has shipped before. The list of CVEs in `HTTP.sys` against the same surface, parsing attacker-supplied HTTP envelope features in ring zero, brackets the modern history of Windows.\n\n| CVE | Year | Surface | Impact |\n| --- | --- | --- | --- |\n| CVE-2015-1635 (MS15-034) | 2015 | `Range` header integer overflow | Kernel RCE, wormable |\n| CVE-2021-31166 | 2021 | `Accept-Encoding` parsing UAF | Kernel RCE, wormable |\n| CVE-2022-21907 | 2022 | HTTP Trailer parsing | Kernel RCE, wormable |\n| CVE-2026-49160 | 2026 | HTTP/2 header count | Kernel DoS |\n\nDifferent envelope feature each time. `Range` in 2015. `Accept-Encoding` in 2021. Trailer support in 2022. HTTP/2 headers in 2026. Each patch closed its instance. None of them changed the substrate. The substrate is \"Microsoft parses the HTTP envelope in the kernel.\" Every new HTTP feature added to that substrate is a new opportunity for the kernel parser to find a corner the kernel parser was not written to handle.\n\nThe pattern catalog has a name for this shape. `HTTP.sys` is a [design-debt driver](https://nefariousplan.com/patterns/design-debt-driver): a component whose bug-class keeps recurring because the architecture is a fertile substrate for it. The maintenance team is not the story. The decision to keep parsing untrusted HTTP envelopes in ring zero is the story, and it is twenty-three years old.\n\nA DoS is the politest member of this family. The 2015, 2021, and 2022 entries were RCEs, all of them wormable, all of them in the same kernel parser. CVE-2026-49160 is the one where the parser ran out of pool memory before it ran out of stream state. The next one might not.\n\n## The number is in the format string\n\nThe argparse default for `--headers` is twenty. The header-name template is `x-fooooooo-{index:04d}`, a zero-padded four-digit decimal field. Twenty fits in two digits. The four-digit pad makes room for the range the author actually tested in.\n\nThe published default sends twenty. The published code accepts four digits' worth. The script is named `http2_bomb.py`. The argparse description calls it a probe. The reader supplies the number that decides which one ships.\n\n`dhmosfunk` did not have to write a second script. The published script is both modes, and the bounded mode is the one currently on the command line. The probe is the bomb with the smaller number. dhmosfunk shipped both modes and put the smaller number on the command line.\n\n## The number is one CLI argument\n\nThe PoC is faithful to a particular kind of disclosure ethic: ship enough to prove the target speaks HTTP/2, ship enough to demonstrate the script reaches a parser, and stop. Do not ship the number that brings the parser down. Let the patch land first. Let the operators apply it. The script that confirms the target and the script that fells the target are the same script, separated by an integer on a command line that the README does not specify.\n\nThat distinction protects the operators in the disclosure window. It does not protect the operators in the post-disclosure window. Anyone reading the bytes on the wire of a successful `http2_bomb.py --headers 20` run can predict what `http2_bomb.py --headers 20000` does to a kernel that allocates per header without a bound, because the parser's behavior is the same and only the count changes. The patch is the answer. Until the patch is rolled, the script in this repo is one flag away from being a kernel-mode availability primitive against every IIS site that negotiated `h2` by default since 2016.\n\nPoC: [dhmosfunk/CVE-2026-49160-HTTP.sys](https://github.com/dhmosfunk/CVE-2026-49160-HTTP.sys)","closing_line":"The patch closes the header counter. HTTP.sys keeps the parser.","hook_md":"The PoC is one file. It is named `http2_bomb.py`. Its argparse description introduces it as \"Send one bounded HTTP/2 header-count probe.\" The default value of `--headers` is twenty. Both descriptions are accurate. They describe different invocations of the same script. CVE-2026-49160 is what the second invocation finds, and HTTP.sys is the listener Windows runs in ring zero to find it.","post_id":639,"slug":"http-sys-cve-2026-49160-probe-is-the-bomb-with-a-smaller-number","title":"CVE-2026-49160: HTTP.sys Parses HTTP/2 In The Kernel. The PoC Is Named `http2_bomb.py` And Defaults To Twenty Headers.","type":"initial","unreadable_sentence":"The probe is the bomb with the smaller number. dhmosfunk shipped both modes and put the smaller number on the command line."} -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRf0htP5+SjynlxywneZjl4jgkQJgUCauOZTAAKCRDeZjl4jgkQ JklIAQC3jCiRGRqIvS4TSjdF2JqSg/yoQp37FzrWrxsWVwRUhAD/cw2+krLTJkgJ s/RG6K/OzvgcDYJ0SmuSQlGTglhe6AA= =Qsl8 -----END PGP SIGNATURE-----