Skip to content
Memory corruption Write-up Advanced

CVE-2026-47291: Remote Code Execution in the Windows HTTP.sys

An integer overflow in HTTP.sys's buffer reference array during HTTP/1.x header parsing over TLS allows a remote unauthenticated attacker to cause a kernel pool heap buffer overflow. This can lead to a denial-of-service condition or, under specific memory layout conditions, arbitrary code execution with kernel privileges.

TrendAI Research Team Follow

Published on thezdi.com

A remote code execution vulnerability exists in the HTTP Protocol Stack for Microsoft Internet Information Services implemented in HTTP.sys. The vulnerability is due to invalid validating incoming HTTP requests.

TrendAI Research Team, on thezdi.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

Context

HTTP.sys is the kernel-mode HTTP protocol driver in Microsoft Windows. It provides HTTP request parsing, response caching, and SSL/TLS termination for Internet Information Services (IIS) and other applications that register URL prefixes. The driver listens on configured TCP ports (commonly 80 for HTTP and 443 for HTTPS) and processes inbound HTTP/1.x and HTTP/2 requests at the kernel level.

When operating over HTTPS, HTTP.sys delegates TLS processing to the Windows Secure Channel (SChannel) provider. Inbound TCP data is decrypted on a per-record basis: each TLS record constitutes an independent unit of encryption and is decrypted separately by SChannel before being delivered to HTTP.sys as a distinct plaintext buffer. A single TLS 1.3 application data record has the following structure:

Text
          Offset   Size       Field

          ------------------------------------------

          0x00     1          ContentType (0x17 = application_data)

          0x01     2          ProtocolVersion (0x0303)

          0x03     2          Length (of encrypted payload)

          0x05     variable   Encrypted payload

The decrypted payload of each TLS record is delivered independently to the HTTP parser via UlHttpBufferReceiveEvent(), regardless of how many TLS records the underlying TCP connection coalesces into a single TCP segment. This behaviour is distinct from plaintext HTTP connections, where the Windows TCP stack coalesces multiple segments into a single receive indication before the data reaches HTTP.sys.

The vulnerability covered here is CVE-2026-47291, a remote code execution bug in this HTTP protocol stack, detailed by Yazhi Wang and Jonathan Lein of the TrendAI Research team. It is caused by invalid validation of incoming HTTP requests.

Setup

The report describes a remote, unauthenticated attack: no account or role is needed on the target. It is reachable only through HTTP/1.x header parsing over TLS, and the registry value MaxRequestBytes must be at least 262,144 bytes. The MaxRequestBytes registry value (at HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters) must be configured to a value of at least 262,144 bytes for the server to accept a request of this size. The default value of 16,384 bytes limits the request to approximately 4000 header lines, which is insufficient to trigger the overflow.

The source code walkthrough was taken from HTTP.sys version 10.0.26100.7705.

Finding it

The HTTP parser maintains a per-request state object that includes a dynamically grown buffer reference array. The capacity field stores the current number of allocated slots in the buffer reference array. The count field stores the number of slots currently in use. The ref_array_ptr field points to the dynamically allocated array of 8-byte buffer reference entries.

When HTTP.sys receives data for an HTTP/1.x request, it allocates a UL_REQUEST_BUFFER structure for each receive indication and tracks these buffers in the per-request reference array. The count field records the number of active buffer references, and the capacity field records the total number of allocated slots.

As the HTTP parser (UlpParseNextRequest()) processes header lines, it calls an inline buffer reference routine each time a new receive buffer is consumed. When count reaches capacity, the routine grows the array by reallocating it with five additional slots. The new allocation size is computed as 0x28 + capacity * 8, the contents of the existing array are copied via memmove using count * 8 as the copy length, and capacity is incremented by 5 as a 16-bit unsigned integer addition. No overflow check is performed on this addition.

That missing check is the flaw: the 16-bit capacity field can wrap, and the growth routine then computes a tiny allocation while copying a very large amount of data into it.

Exploitation

Step 1: Understand the wrap arithmetic

After 13,107 growth events, capacity reaches 0xFFFB. The next growth adds 5, producing 0x10000, which truncates to 0x0000 in the 16-bit field. On the subsequent buffer reference addition, count (which is now 65,536 or greater) exceeds the zero capacity, triggering another growth. The allocation size computation 0x28 + 0 * 8 produces a 40-byte allocation, but the memmove copies count * 8 bytes (approximately 524,256 bytes) from the old buffer into the 40-byte allocation. This results in a kernel pool heap buffer overflow of over 500 kilobytes.

Step 2: Turn TLS records into buffer references

Each buffer reference corresponds to one receive buffer delivered to the HTTP parser. For plaintext HTTP connections, the Windows TCP stack coalesces received segments into large indications, and UlpMergeBuffers() further combines buffers within HTTP.sys. Over TLS connections, each TLS record is decrypted independently by SChannel and delivered as a separate buffer through UlHttpBufferReceiveEvent() into UlpCopyIndicatedData(). If each TLS record contains exactly one complete header line (terminated by CRLF), the HTTP parser fully consumes the buffer without setting the partial-parse flag, causing UlpAdjustBuffers() to advance to the next buffer via its non-merge path. This creates a 1:1 correspondence between TLS records sent and buffer references accumulated.

Step 3: Craft the request

To trigger the overflow, an attacker crafts an HTTP request in which each header line is encapsulated in a separate TLS application data record. Given a minimum header line size of approximately 4 bytes and a required count of 65,536 buffer references, the total request size comes to roughly 262,144 bytes. This is why MaxRequestBytes must be at least 262,144 bytes for the server to accept the request.

Step 4: Send and observe

A remote unauthenticated attacker sends this specially crafted HTTP/1.x request over a TLS connection to an affected server. Successful exploitation results in unexpected system termination due to a memory access exception in the context of the kernel. Under specific memory layout conditions, exploitation could result in arbitrary code execution in the context of the kernel.

At a sending rate of 10 milliseconds per TLS record, the overflow requires approximately 11 minutes to trigger.

Limits on reachability

The vulnerability is only reachable through HTTP/1.x header parsing over TLS connections. HTTP/2 and HTTP/3 use different parser paths that do not interact with the buffer reference array. Body data parsing (Content-Length or chunked transfer encoding) does not add entries to the buffer reference array; only header parsing triggers buffer reference growth.

Root cause

The vulnerable code was taken from HTTP.sys version 10.0.26100.7705, with comments added by TrendAI Research. In UlpParseNextRequest():

Text
          __int64 __fastcall UlpParseNextRequest(

                  __int64 request_object,

                  __int64 buffer,

                  unsigned int buffer_length)

          {

          [...truncated for readability...]

              capacity = *(unsigned __int16 *)(request_object + 0x640);

              count = *(unsigned __int16 *)(request_object + 0x642);

              // Check whether the buffer reference array needs to grow

              if (count >= capacity)

              {

                  // Allocation size: 0x28 header bytes plus capacity * 8 bytes per entry

                  // When capacity has wrapped to 0, this computes a 40-byte allocation

                  alloc_size = 0x28 + (unsigned __int64)capacity * 8;

                  new_buffer = ExAllocatePool3(0x42, alloc_size, 'lSmU');

                  if (!new_buffer)

                      return STATUS_INSUFFICIENT_RESOURCES;

                  old_buffer = *(__int64 *)(request_object + 0x648);

                  //Copies count * 8 bytes from the old array into the new allocation

                  // After wrap: copies approximately 524 KB into the 40-byte allocation

                  memmove(new_buffer, old_buffer, (unsigned __int64)count * 8);

                  //16-bit unsigned addition with no overflow check

          // After 13,107 growths: 0xFFFB + 5 = 0x10000, truncated to 0x0000

                  *(unsigned __int16 *)(request_object + 0x640) = capacity + 5;

                  ExFreePoolWithTag(old_buffer, 'lSmU');

                  *(__int64 *)(request_object + 0x648) = new_buffer;

              }

              // Appends the new buffer reference to the array

              ref_array = *(__int64 *)(request_object + 0x648);

              *(__int64 *)(ref_array + (unsigned __int64)count * 8) = buffer;

              *(unsigned __int16 *)(request_object + 0x642) = count + 1;

          [...truncated for readability...]

          }

The capacity field is a 16-bit unsigned integer. The growth path adds 5 to it without checking for overflow, so the value wraps from 0xFFFB to 0x0000. The allocation size is derived from the wrapped capacity, while the copy length is derived from count, which keeps growing. The two values are no longer consistent, and the memmove writes far past the end of the new pool allocation. The existing bounds check (count >= capacity) only decides whether to grow; it does not validate the result of the increment, so it does not stop the wrap.

Impact

Successful exploitation of this vulnerability can result in a denial-of-service condition, or, in the worst case, code execution with kernel privileges. In practice the report describes unexpected system termination due to a memory access exception in the context of the kernel, and, under specific memory layout conditions, arbitrary code execution in the context of the kernel. The attacker is remote and unauthenticated, and the request must arrive as HTTP/1.x headers over TLS with MaxRequestBytes configured as described above.

Fix

This vulnerability was patched by Microsoft in the June 2026 release cycle. Microsoft notes several mitigations that include editing the registry to ensure unpatched systems are not vulnerable to exploitation. As a mitigation, keeping MaxRequestBytes at or below 65,535 bytes represents the most conservative configuration to prevent this attack. However, the best method to ensure this bug has been fully remediated is to test and deploy the vendor-supplied patch.

Detection guidance

To detect an attack exploiting this vulnerability, the detection device must monitor and parse traffic on the TCP port 443. The traffic on the affected port(s) is TLS-encrypted, so the detection device must be able to decrypt the TLS traffic before applying the following detection method. The detection device should monitor for HTTPS connections.

An HTTP/1.x request consists of a request line followed by zero or more header field lines, each terminated by CRLF. The following grammar defines the relevant structure:

Text
          HTTP-request = request-line *( header-field CRLF ) CRLF

          request-line = method SP request-target SP HTTP-version CRLF

          header-field = field-name ":" OWS field-value OWS

Decrypted traffic inspection: after decrypting the TLS session, the detection device must parse the HTTP/1.x request headers and count the number of distinct header field lines present in a single HTTP request. If the number of header field lines in a single request exceeds 1,000, the traffic should be considered suspicious; an attack exploiting this vulnerability is likely underway.

Encrypted traffic heuristics: where decryption is not available, the detection device should inspect the pattern of TLS application data records within the encrypted session. If each TLS application data record contains a single short payload and the total number of such records on a single connection exceeds 1,000, the traffic should be considered suspicious; an attack exploiting this vulnerability is likely underway.

The report adds three notes on detection. The preferred method (header line count) requires the ability to decrypt TLS traffic, for example through TLS inspection, a decrypting proxy, or possession of the server's private key; it directly observes the attack indicator and produces low false-positive and false-negative rates. The TLS record heuristic operates on encrypted traffic and does not require decryption, but is more prone to false positives (legitimate applications that send many small TLS records, such as interactive streaming sessions, may trigger it) and to false negatives (the threshold is based on observable record sizes rather than the actual header count that determines exploitability); where possible, decrypted traffic inspection should be preferred. Finally, the attack requires approximately 11 minutes of sustained connection to accumulate sufficient header lines, so connection duration monitoring may serve as a supplementary detection heuristic.

  1. Other 16-bit counters in kernel parsers. Look for growth routines where a capacity or length field is stored in a 16-bit type and incremented without an overflow check. A positive result is a wrap that makes the allocation size and the copy length diverge, as happens here with 0xFFFB + 5.
  2. Per-record delivery paths. Any stack where a lower layer (TLS, a proxy, a framing protocol) delivers one buffer per record to a parser that accumulates references will let an attacker control the number of buffers 1:1. A positive result is a parser whose buffer count grows with the number of records rather than with the number of bytes.
  3. Header-only growth. Test whether body parsing (Content-Length or chunked transfer encoding) adds entries to the same reference array. Here it does not, so a positive result elsewhere would be a parser where body data also grows the array, lowering the request size needed.
  4. Protocol downgrade paths. HTTP/2 and HTTP/3 use different parser paths here and do not reach the array. A positive result is a server that routes HTTP/2 or HTTP/3 requests through the same header parser, making the bug reachable without HTTP/1.x over TLS.
  5. Configuration thresholds. Check MaxRequestBytes and similar request-size limits on other HTTP.sys-based deployments. A positive result is a value at or above 262,144 bytes, which allows the roughly 262,144-byte request needed for 65,536 buffer references.
  6. Detection evasion. Try the same header-line pattern with larger or padded header lines, or with records that do not map exactly one header line each. A positive result is a request that still accumulates enough references while staying under the 1,000-header-line and 1,000-record heuristics.
Hero Background
Hero Background From the original on thezdi.com

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 19 min read.

What happened, in plain words

Microsoft Windows contains a piece of software called HTTP.sys. It is the part of Windows that listens for web traffic and hands it to web servers such as Internet Information Services (IIS). A team of researchers, Yazhi Wang and Jonathan Lein of the TrendAI Research team, found a serious bug in it, tracked as CVE-2026-47291. CVE is simply an ID number that the security world gives to a publicly known vulnerability, so everyone can refer to the same issue.

The bug lets anyone on the internet, without any username or password, send a specially shaped HTTP/1.x request over TLS to a Windows machine configured to accept large requests, and make the machine crash. In the worst case, and only when the machine's memory happens to be laid out in a particular way, the attacker can also run their own code inside the most privileged part of Windows, the kernel. The kernel is the core of the operating system, the layer that has full control over the hardware; code running there can do anything on the machine.

The cause is a counting mistake. HTTP.sys keeps a list of the pieces of data it has received for a request. The list has a counter that says how many slots are allocated, and that counter is stored in a small box that can only hold numbers up to 65,535. When the list grows past that limit, the counter wraps back to zero, like a car odometer rolling over. The software then believes it has almost no space and reserves a tiny amount of memory, but it still copies a huge amount of data into it. That is called a buffer overflow: writing more data into a memory area than the area can hold, so the extra data spills into neighbouring memory.

Microsoft fixed the bug in the June 2026 release cycle. The report also gives advice on how to configure servers that have not yet been patched, and how to spot an attack in network traffic.

The product and the feature

HTTP.sys is what Windows calls a kernel-mode HTTP protocol driver. In everyday terms, it is a built-in traffic officer for web requests. It sits inside the operating system itself, not inside a normal application, and it does three jobs:

  1. It reads incoming HTTP requests, the text messages browsers send to web servers.
  2. It caches responses, so repeated requests can be answered faster.
  3. It handles SSL/TLS, the encryption that turns HTTP into HTTPS, the padlock you see in your browser's address bar.

It listens on TCP ports. A port is a numbered door on a computer; port 80 is the usual door for unencrypted HTTP and port 443 for encrypted HTTPS. It processes HTTP/1.x and HTTP/2 requests at the kernel level, meaning in the most privileged layer of the system.

When a connection is HTTPS, HTTP.sys does not do the decryption itself. It hands that job to another Windows component, the Secure Channel provider, usually shortened to SChannel. SChannel is the part of Windows that speaks TLS, the encryption protocol behind HTTPS.

TLS does not encrypt a whole conversation as one giant blob. It chops the data into small chunks called records. Each record is encrypted and decrypted on its own. Think of sending a long letter by cutting it into postcards: each postcard is sealed separately, and the recipient opens each one individually. A single TLS 1.3 application data record has this structure:

Text
          Offset   Size       Field

          ------------------------------------------

          0x00     1          ContentType (0x17 = application_data)

          0x01     2          ProtocolVersion (0x0303)

          0x03     2          Length (of encrypted payload)

          0x05     variable   Encrypted payload

Line by line:

  • The first column, Offset, is the position of the field measured from the start of the record, in hexadecimal (base 16) notation. 0x00 means the very first byte.
  • ContentType at offset 0x00 is one byte that says what kind of record this is. The value 0x17 means application data, that is, actual content rather than a handshake message.
  • ProtocolVersion at offset 0x01 is two bytes holding the TLS version, here 0x0303.
  • Length at offset 0x03 is two bytes telling how long the encrypted payload is.
  • Encrypted payload starts at offset 0x05 and is variable in size; it is the scrambled content itself.

Why does this matter? Because each decrypted record is passed to the HTTP parser as a separate buffer. A buffer is just a chunk of memory holding data. The report says the decrypted payload of each TLS record is delivered independently to the HTTP parser through a function called UlHttpBufferReceiveEvent(), no matter how many records the underlying TCP connection packs into a single TCP segment. TCP is the transport protocol that carries the bytes; a segment is one package of those bytes on the wire.

This is different from plain, unencrypted HTTP. There, the Windows TCP stack merges several segments into one receive indication before the data reaches HTTP.sys. In other words, over plain HTTP the traffic officer receives big bundles, while over HTTPS it receives one small envelope per TLS record. That difference is the key to the whole attack.

The vulnerability

The HTTP parser keeps a small state object for each request. Inside it is a dynamically grown buffer reference array: a list that records where each received buffer lives. Three fields matter:

  • capacity: how many slots the list currently has room for.
  • count: how many slots are actually in use.
  • ref_array_ptr: a pointer, that is, the memory address where the list itself is stored. Each entry in the list is 8 bytes long and refers to one buffer.

When HTTP.sys receives data for an HTTP/1.x request, it allocates a UL_REQUEST_BUFFER structure for each receive indication and tracks these buffers in that per-request list. The count field records how many active references there are, and capacity records how many slots were allocated.

As the parser, a function called UlpParseNextRequest(), walks through the header lines, it calls an inline routine to add a reference each time a new receive buffer is consumed. When count reaches capacity, the routine grows the list by reallocating it with five extra slots. The new size is computed as 0x28 + capacity * 8. The old contents are copied with memmove, using count * 8 as the number of bytes to copy. Then capacity is increased by 5 as a 16-bit unsigned integer addition, and no overflow check is performed on that addition.

A 16-bit unsigned integer is a number stored in 16 bits, which can hold values from 0 to 65,535. Adding to it past 65,535 does not produce an error; it silently wraps around to a small number. That missing check is the flaw: the capacity field can wrap, and the growth routine then reserves a tiny allocation while copying a very large amount of data into it.

Exploitation

Step 1: Understand the wrap arithmetic

After 13,107 growth events, capacity reaches 0xFFFB. In decimal, 0xFFFB is 65,531. The next growth adds 5, producing 0x10000, which is 65,536 in decimal, one more than the 16-bit field can hold. The value truncates to 0x0000, that is, zero.

On the next buffer reference addition, count, which is now 65,536 or greater, exceeds the zero capacity, so the routine decides to grow again. The allocation size computation 0x28 + 0 * 8 produces a 40-byte allocation. But the memmove copies count * 8 bytes, approximately 524,256 bytes, from the old buffer into that 40-byte allocation. The result is a kernel pool heap buffer overflow of over 500 kilobytes. The kernel pool is the shared memory area the kernel hands out in small pieces; a heap is the region where such dynamically sized pieces live. Writing half a megabyte into a 40-byte slot smashes whatever sits next to it in kernel memory.

Step 2: Turn TLS records into buffer references

Each buffer reference corresponds to one receive buffer delivered to the HTTP parser. For plaintext HTTP connections, the Windows TCP stack merges received segments into large indications, and a function called UlpMergeBuffers() further combines buffers inside HTTP.sys. Over TLS connections, each TLS record is decrypted independently by SChannel and delivered as a separate buffer through UlHttpBufferReceiveEvent() into UlpCopyIndicatedData().

If each TLS record contains exactly one complete header line, terminated by CRLF, the parser fully consumes the buffer without setting the partial-parse flag, which causes UlpAdjustBuffers() to advance to the next buffer via its non-merge path. CRLF stands for carriage return plus line feed, the two invisible characters that mark the end of a line in HTTP. The upshot is a 1:1 correspondence between TLS records sent and buffer references accumulated: one record in, one slot used. The attacker controls the count simply by sending more records.

Step 3: Craft the request

To trigger the overflow, an attacker crafts an HTTP request in which each header line is encapsulated in a separate TLS application data record. A header line is one of the lines at the top of a web request, such as the line that tells the server which browser is calling. Given a minimum header line size of approximately 4 bytes and a required count of 65,536 buffer references, the total request size comes to roughly 262,144 bytes. That is why MaxRequestBytes must be at least 262,144 bytes for the server to accept the request.

MaxRequestBytes is a Windows registry setting that caps how large a request the server will accept. The registry is Windows' central configuration database. The value lives at HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters. Its default of 16,384 bytes limits the request to approximately 4000 header lines, which is not enough to trigger the overflow. So the attack only works on servers configured to accept unusually large requests.

Step 4: Send and observe

A remote unauthenticated attacker sends this specially crafted HTTP/1.x request over a TLS connection to an affected server. Remote means over the network, and unauthenticated means no login is needed. Successful exploitation results in unexpected system termination due to a memory access exception in the context of the kernel: the machine crashes because the kernel tried to touch memory it should not. Under specific memory layout conditions, exploitation could result in arbitrary code execution in the context of the kernel, meaning the attacker's own instructions run with the highest privileges on the box.

At a sending rate of 10 milliseconds per TLS record, the overflow requires approximately 11 minutes to trigger. That is slow, but an attacker can simply keep the connection open.

Limits on reachability

The vulnerability is only reachable through HTTP/1.x header parsing over TLS connections. HTTP/2 and HTTP/3 use different parser paths that do not interact with the buffer reference array. Body data parsing, whether via Content-Length or chunked transfer encoding, does not add entries to the buffer reference array; only header parsing triggers buffer reference growth. Content-Length is the header that states how big the body is, and chunked transfer encoding is a way of sending the body in pieces. Neither helps the attacker here.

Root cause

The vulnerable code was taken from HTTP.sys version 10.0.26100.7705, with comments added by TrendAI Research. In UlpParseNextRequest():

Text
          __int64 __fastcall UlpParseNextRequest(

                  __int64 request_object,

                  __int64 buffer,

                  unsigned int buffer_length)

          {

          [...truncated for readability...]

              capacity = *(unsigned __int16 *)(request_object + 0x640);

              count = *(unsigned __int16 *)(request_object + 0x642);

              // Check whether the buffer reference array needs to grow

              if (count >= capacity)

              {

                  // Allocation size: 0x28 header bytes plus capacity * 8 bytes per entry

                  // When capacity has wrapped to 0, this computes a 40-byte allocation

                  alloc_size = 0x28 + (unsigned __int64)capacity * 8;

                  new_buffer = ExAllocatePool3(0x42, alloc_size, 'lSmU');

                  if (!new_buffer)

                      return STATUS_INSUFFICIENT_RESOURCES;

                  old_buffer = *(__int64 *)(request_object + 0x648);

                  //Copies count * 8 bytes from the old array into the new allocation

                  // After wrap: copies approximately 524 KB into the 40-byte allocation

                  memmove(new_buffer, old_buffer, (unsigned __int64)count * 8);

                  //16-bit unsigned addition with no overflow check

          // After 13,107 growths: 0xFFFB + 5 = 0x10000, truncated to 0x0000

                  *(unsigned __int16 *)(request_object + 0x640) = capacity + 5;

                  ExFreePoolWithTag(old_buffer, 'lSmU');

                  *(__int64 *)(request_object + 0x648) = new_buffer;

              }

              // Appends the new buffer reference to the array

              ref_array = *(__int64 *)(request_object + 0x648);

              *(__int64 *)(ref_array + (unsigned __int64)count * 8) = buffer;

              *(unsigned __int16 *)(request_object + 0x642) = count + 1;

          [...truncated for readability...]

          }

Line by line, in plain words:

  • The first lines declare the function UlpParseNextRequest and its inputs: a request object, a buffer, and the buffer's length. The [...truncated for readability...] marks code the report left out.
  • capacity = *(unsigned __int16 *)(request_object + 0x640); reads the capacity field from the request object at offset 0x640. The unsigned __int16 part is what makes it a 16-bit number, the small box that can wrap.
  • count = *(unsigned __int16 *)(request_object + 0x642); reads the count field at offset 0x642.
  • if (count >= capacity) asks whether the list is full and needs to grow.
  • alloc_size = 0x28 + (unsigned __int64)capacity * 8; computes the new size: 40 bytes of header plus 8 bytes per slot. If capacity has wrapped to zero, this is just 40 bytes.
  • new_buffer = ExAllocatePool3(0x42, alloc_size, 'lSmU'); asks the kernel for that much memory. The tag 'lSmU' is a four-character label the kernel uses to identify the owner of the allocation.
  • if (!new_buffer) return STATUS_INSUFFICIENT_RESOURCES; handles the case where memory could not be obtained.
  • old_buffer = *(__int64 *)(request_object + 0x648); fetches the address of the existing list.
  • memmove(new_buffer, old_buffer, (unsigned __int64)count * 8); copies the old list into the new memory. The length is based on count, not capacity, and after the wrap count is huge while the new memory is tiny. This is the overflow.
  • *(unsigned __int16 *)(request_object + 0x640) = capacity + 5; stores the new capacity, adding 5 with no overflow check. After 13,107 growths, 0xFFFB + 5 = 0x10000, which truncates to 0x0000.
  • ExFreePoolWithTag(old_buffer, 'lSmU'); releases the old memory.
  • *(__int64 *)(request_object + 0x648) = new_buffer; records the new list address.
  • The final lines append the new buffer reference at position count and increase count by one.

The capacity field is a 16-bit unsigned integer. The growth path adds 5 to it without checking for overflow, so the value wraps from 0xFFFB to 0x0000. The allocation size is derived from the wrapped capacity, while the copy length is derived from count, which keeps growing. The two values are no longer consistent, and the memmove writes far past the end of the new pool allocation. The existing bounds check, count >= capacity, only decides whether to grow; it does not validate the result of the increment, so it does not stop the wrap.

Impact

Successful exploitation of this vulnerability can result in a denial-of-service condition, or, in the worst case, code execution with kernel privileges. A denial of service means the service stops working, here because the machine crashes. In practice the report describes unexpected system termination due to a memory access exception in the context of the kernel, and, under specific memory layout conditions, arbitrary code execution in the context of the kernel. The attacker is remote and unauthenticated, and the request must arrive as HTTP/1.x headers over TLS with MaxRequestBytes configured as described above.

Fix

This vulnerability was patched by Microsoft in the June 2026 release cycle. Microsoft notes several mitigations that include editing the registry to ensure unpatched systems are not vulnerable to exploitation. As a mitigation, keeping MaxRequestBytes at or below 65,535 bytes represents the most conservative configuration to prevent this attack. However, the best method to ensure this bug has been fully remediated is to test and deploy the vendor-supplied patch. A mitigation is a workaround that reduces risk; a patch is the actual repair.

Detection guidance

To detect an attack exploiting this vulnerability, the detection device must monitor and parse traffic on TCP port 443. The traffic on the affected port is TLS-encrypted, so the detection device must be able to decrypt the TLS traffic before applying the following detection method. The detection device should monitor for HTTPS connections.

An HTTP/1.x request consists of a request line followed by zero or more header field lines, each terminated by CRLF. The following grammar defines the relevant structure:

Text
          HTTP-request = request-line *( header-field CRLF ) CRLF

          request-line = method SP request-target SP HTTP-version CRLF

          header-field = field-name ":" OWS field-value OWS

Line by line:

  • HTTP-request = request-line *( header-field CRLF ) CRLF says a request is one request line, then any number of header fields each ending in CRLF, then a final CRLF that marks the end of the headers. The asterisk means zero or more repetitions.
  • request-line = method SP request-target SP HTTP-version CRLF says the request line is a method (such as GET), a space (SP), the target (such as a path), another space, the HTTP version, and CRLF.
  • header-field = field-name ":" OWS field-value OWS says a header field is a name, a colon, optional whitespace (OWS), a value, and optional whitespace.

Decrypted traffic inspection: after decrypting the TLS session, the detection device must parse the HTTP/1.x request headers and count the number of distinct header field lines present in a single HTTP request. If the number of header field lines in a single request exceeds 1,000, the traffic should be considered suspicious; an attack exploiting this vulnerability is likely underway. The logic is simple: a normal browser request has a handful of headers, while this attack needs tens of thousands.

Encrypted traffic heuristics: where decryption is not available, the detection device should inspect the pattern of TLS application data records within the encrypted session. If each TLS application data record contains a single short payload and the total number of such records on a single connection exceeds 1,000, the traffic should be considered suspicious; an attack exploiting this vulnerability is likely underway. A heuristic is a rule of thumb that spots likely trouble without being certain.

The report adds three notes on detection. The preferred method, counting header lines, requires the ability to decrypt TLS traffic, for example through TLS inspection, a decrypting proxy, or possession of the server's private key; it directly observes the attack indicator and produces low false-positive and false-negative rates. A false positive is an alarm on innocent traffic, and a false negative is a missed attack. The TLS record heuristic operates on encrypted traffic and does not require decryption, but is more prone to false positives, since legitimate applications that send many small TLS records, such as interactive streaming sessions, may trigger it, and to false negatives, because the threshold is based on observable record sizes rather than the actual header count that determines exploitability; where possible, decrypted traffic inspection should be preferred. Finally, the attack requires approximately 11 minutes of sustained connection to accumulate sufficient header lines, so connection duration monitoring may serve as a supplementary detection heuristic.

The report lists six directions for further testing:

  1. Other 16-bit counters in kernel parsers. Look for growth routines where a capacity or length field is stored in a 16-bit type and incremented without an overflow check. A positive result is a wrap that makes the allocation size and the copy length diverge, as happens here with 0xFFFB + 5.
  2. Per-record delivery paths. Any stack where a lower layer (TLS, a proxy, a framing protocol) delivers one buffer per record to a parser that accumulates references will let an attacker control the number of buffers 1:1. A positive result is a parser whose buffer count grows with the number of records rather than with the number of bytes.
  3. Header-only growth. Test whether body parsing (Content-Length or chunked transfer encoding) adds entries to the same reference array. Here it does not, so a positive result elsewhere would be a parser where body data also grows the array, lowering the request size needed.
  4. Protocol downgrade paths. HTTP/2 and HTTP/3 use different parser paths here and do not reach the array. A positive result is a server that routes HTTP/2 or HTTP/3 requests through the same header parser, making the bug reachable without HTTP/1.x over TLS.
  5. Configuration thresholds. Check MaxRequestBytes and similar request-size limits on other HTTP.sys-based deployments. A positive result is a value at or above 262,144 bytes, which allows the roughly 262,144-byte request needed for 65,536 buffer references.
  6. Detection evasion. Try the same header-line pattern with larger or padded header lines, or with records that do not map exactly one header line each. A positive result is a request that still accumulates enough references while staying under the 1,000-header-line and 1,000-record heuristics.
Hero Background
Hero Background From the original on thezdi.com

Glossary

  • HTTP.sys: the kernel-mode HTTP protocol driver in Microsoft Windows that parses web requests, caches responses and handles TLS for IIS and other applications.
  • Kernel: the most privileged core layer of an operating system, with full control over hardware and memory.
  • Kernel-mode driver: software that runs inside the kernel rather than as a normal application.
  • IIS (Internet Information Services): Microsoft's web server software for Windows.
  • HTTP: the text-based protocol browsers and web servers use to exchange requests and responses.
  • HTTPS: HTTP carried inside TLS encryption, shown by the padlock in a browser.
  • TCP: the transport protocol that carries bytes reliably between two machines.
  • TCP port: a numbered door on a computer; 80 is the usual HTTP door and 443 the usual HTTPS door.
  • TCP segment: one package of bytes sent over a TCP connection.
  • TLS: the encryption protocol behind HTTPS.
  • TLS record: one independently encrypted chunk of a TLS session.
  • SChannel (Secure Channel): the Windows component that performs TLS processing.
  • Buffer: a chunk of memory holding data.
  • Buffer reference array: the per-request list in HTTP.sys that records where each received buffer lives.
  • Capacity: the number of slots allocated in that list.
  • Count: the number of slots currently in use in that list.
  • Pointer: a memory address that says where something is stored.
  • 16-bit unsigned integer: a number stored in 16 bits, holding values from 0 to 65,535 and wrapping silently past the top.
  • Integer overflow: a counting mistake where a number grows past what its storage can hold and wraps to a small value.
  • Buffer overflow: writing more data into a memory area than it can hold, so the extra data spills into neighbouring memory.
  • Heap / kernel pool: the shared memory area from which dynamically sized pieces are handed out; the kernel pool is the kernel's version.
  • memmove: a standard function that copies a block of bytes from one memory location to another.
  • ExAllocatePool3 / ExFreePoolWithTag: Windows kernel functions that reserve and release pool memory, the latter using a four-character tag to label the owner.
  • CRLF: carriage return plus line feed, the two characters that end a line in HTTP.
  • Header line: one of the lines at the top of an HTTP request that carry metadata such as the browser name.
  • Request line: the first line of an HTTP request, naming the method, target and HTTP version.
  • Content-Length: the header that states the size of the request body.
  • Chunked transfer encoding: a way of sending a request body in pieces.
  • HTTP/1.x, HTTP/2, HTTP/3: successive versions of the HTTP protocol, with different internal parsing paths.
  • MaxRequestBytes: the Windows registry setting that caps how large a request the server accepts.
  • Registry: Windows' central configuration database.
  • HKLM: short for HKEY_LOCAL_MACHINE, the registry branch holding machine-wide settings.
  • CVE: a public ID number given to a known vulnerability.
  • Remote, unauthenticated: reachable over the network without any login.
  • Denial of service: an attack that makes a service stop working, here by crashing the machine.
  • Arbitrary code execution: running the attacker's own instructions on the target.
  • Memory access exception: a fault raised when code touches memory it is not allowed to touch.
  • Patch: the vendor's official repair for a vulnerability.
  • Mitigation: a workaround that reduces risk without repairing the underlying bug.
  • Heuristic: a rule of thumb that flags likely trouble without certainty.
  • False positive / false negative: an alarm on innocent traffic / a missed attack.
  • TLS inspection / decrypting proxy: equipment that decrypts TLS traffic so it can be examined.
  • Private key: the secret half of the key pair a server uses to decrypt its TLS traffic.
  • ABNF: the formal grammar notation used to describe protocol message structure.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.