A fixed-size stack buffer, a length the attacker chooses, and a copy with no
bound. The parsing happens before authentication because it has to. The daemon
runs as root because it must. Those three facts are CVE-2026-102182.

What the advisory says

Juniper's JSA112196, 14 October 2026, is titled "Junos OS: MX Series:
Certificate-based IKE packets cause root-level code execution." The CVE record is
specific:

A stack-based buffer overflow vulnerability in the kmd component of Juniper
Networks Junos OS on MX Series allows an unauthenticated network attacker to
execute code as root via specific IKE certificate-based packets. This issue
requires IKE to be enabled with an RSA-signature IKE policy to be vulnerable.

The metrics: CVSS 3.1 9.8
(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), CVSS 4.0 9.3, CWE-121. Juniper
says the issue was found in internal testing and SIRT was not aware of malicious
exploitation at publication.

The stack, in one picture

When kmd parses a certificate, it copies fields into local buffers on the
stack. The frame, growing downward:

higher addresses
  ┌──────────────────────────────┐
  │ caller's frame               │
  ├──────────────────────────────┤
  │ return address               │  ← reached first by a long copy
  ├──────────────────────────────┤
  │ saved frame pointer          │
  ├──────────────────────────────┤
  │ fixed-size certificate buffer│  ← the copy destination
  ├──────────────────────────────┤
  │ locals                       │
  └──────────────────────────────┘
lower addresses

A copy into that buffer with an unchecked length writes past the end. If the data
is long enough it reaches the saved frame pointer and return address; when the
function returns, execution jumps wherever the attacker pointed it.

Real exploits must deal with canaries, ASLR and non-executable memory, but the
advisory's impact is "execute code as root". The corpus retrieved no proof of
concept, and this series does not claim one exists.

Which field overflows

The advisory does not say which certificate field is copied without a bound.
Three sub-classes fit, all common in parsers:

Distinguished Name or SAN copy. A subject or subjectAltName entry longer
than the destination, copied with strcpy or an unbounded loop.

Chain handling. A chain with more elements than a fixed-size array holds,
written past the end.

ASN.1 length handling. A declared length that exceeds the destination and is
used directly as the copy count. Nested DER lengths make this easy to get wrong.

These are inferred from the defect class, not read in the advisory: the
difference between "the vendor said" and "the shape implies" separates evidence
from a guess.

Why this is the fundamental flaw

Three properties combine, and none is optional:

Unauthenticated. No account, no certificate, no prior relationship. The
packet is the credential.

Pre-authentication. The overflow happens while kmd parses the certificate,
before it validates the chain or verifies the signature. The protocol forces
that order.

Root. kmd is privileged by design because it manages keys and SAs. A memory
bug in a privileged daemon is a root bug.

Add the network position: IKE listens on UDP 500 and 4500, and any MX that
terminates IPsec must accept those packets from the Internet. The attack surface
is not a management interface; it is the service.

The scoring correction

The corpus records impact 5.75, rank 18 of 26, with E=6 — the assumption
that exploitation required a peer position or a valid certificate chain. The
advisory says unauthenticated; the vector is PR:N with AV:N. That
assumption is wrong.

Corrected, this is the most severe individual vulnerability in the corpus by
classic CVSS reasoning
: 9.8, pre-auth, remote, root, on service-provider edge
routers. It ranks 18th only because it is fixed — patch status, not severity, and
the two must not be conflated in a risk register.

The scope condition that saves some networks

The advisory adds a condition easy to miss: the device is vulnerable only when
IKE is enabled with an RSA-signature IKE policy. A router running pre-shared
keys only, or no IPsec, does not take this path.

That is a real scoping fact, not an excuse. Certificate-based authentication is
common in carrier and enterprise VPN deployments precisely because it scales
better than PSKs — and those are often the largest networks.

Next: Part 8 — twelve trains, no single version: the fixed-release matrix,
the respins, and the branches that get no fix at all.