Half a Gigabyte Before the First Write

Site Admin · 3 Dec 2026 · Core Internet Infrastructure

Seven steps from an application call to a corrupted heap, and the reason the first step is the hardest: half a gigabyte of input the application must actually accept.

The overflow is easy to describe and hard to reach. Seven steps separate an
attacker's input from a corrupted heap, and the first of them is a size the
attacker must actually deliver.

The chain

  1. An application calls the conversion API with untrusted input. Not a TLS
    handshake or certificate path: a direct call to ASN1_mbstring_copy() or
    ASN1_mbstring_ncopy(), or a custom type registered through
    ASN1_STRING_TABLE_add(), with attacker-influenced length and buffer.
  2. The input is huge. The count must approach 2^30: 4 GiB of
    UniversalString input, 2 GiB of BMPString, or enough UTF-8 to push the
    summed output past INT_MAX. The advisory's shorthand: "on the order of
    half a gigabyte or more".
  3. The size calculation wraps. outlen becomes small — zero in the worst
    case.
  4. A tiny buffer is allocated. OPENSSL_malloc(1).
  5. The conversion writes the true length. traverse_string() walks the
    input and writes every converted character, gigabytes past the allocation.
  6. Heap metadata and adjacent objects are overwritten. The corruption
    depends on what the allocator placed next to the one-byte block.
  7. The process continues, crashes, or is controlled. A crash is denial of
    service; corrupting a function pointer, length field or object header is
    the beginning of code execution in the parsing process, with its keys and
    plaintext.

That is why the advisory says "possibly" code execution: a length-controlled
heap overflow is a real primitive, not a reliable one.

What the attacker needs

Three things, and the third is the hard one:

The first two are filters: a 10 MB request cap, a 50 MB mail limit, or a TLS
handshake cannot deliver the input at all.

That is what "no network protocol or certificate-handling path exercises the
overflow" means: the vulnerability is real, the delivery path belongs to the
application.

Why the heap matters more than the write

A four-gigabyte write does not stop at the end of the heap: the process dies
when the copy walks into unmapped pages. That is the common case.

The interesting case is the small wrap. If outlen wraps to a small non-zero
value, the overwrite is bounded by the difference between true and allocated
size. A chosen length can produce a few-kilobyte overwrite — enough to corrupt
adjacent objects without touching an unmapped page.

That is heap grooming: choose the length so the wrapped size lands where you
want, arrange the adjacent allocations, and write over the object you chose.
Not trivial, not impossible.

What the process holds

The converting process holds the interesting material: private keys and
plaintext at a TLS terminator, the signing key at a CA, the message store and
S/MIME keys at a mail gateway. Corruption there is not a parser bug; it is a
trust-boundary bug.

The honest assessment

CVE-2026-7383 is Low severity with a High ceiling. The vendor's rating reflects
delivery difficulty and the absence of a protocol path; the ceiling reflects
what happens if delivery succeeds. Both are true. The bug does not justify an
emergency across every TLS server, but it justifies patching and a review of
any application that hands unbounded ASN.1 to the string API.

Next: Part 10 — the patch is public, the fleet is not: the remediation
ladder from the package manager to the firmware image.