Skip to content
Memory corruption Write-up Advanced

The Bug That Reads and Writes: Reverse-Engineering vCenter’s DCE/RPC Heap Overflow (CVE-2024–38812)

A pre-authentication heap overflow in VMware vCenter's DCE/RPC runtime allows an attacker to write controlled data to a relative heap location, and the same flaw also enables an arbitrary relative read that leaks memory. The author demonstrates reliable remote code execution by overwriting a callback pointer with a build-constant displacement.

Anthony Cihan Follow

Published on medium.com

Information Security

Anthony Cihan, on medium.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. 14 min read.

Context

vCenter Server is the control plane for a VMware estate, and compromising it puts an attacker one step away from the managed ESXi hosts. That is why the 2024 DCE/RPC vulnerabilities in vCenter became a ransomware favourite. Three network CVEs landed in two advisories:

Text
| CVE | VMSA | Class | Mechanism | CVSS ||-----|------|-------|-----------|------|| CVE-2024-37079 | 2024-0012 | A | DCE/RPC association **auth-trailer integer underflow** → heap overflow | 9.8 || CVE-2024-37080 | 2024-0012 | A | Same class, `ALTER_CONTEXT` sibling path | 9.8 || CVE-2024-38812 | 2024-0019 | B | NDR **conformant/varying-array** pointer arithmetic → relative heap write | 9.8 |

All three are unauthenticated and reachable by binding a valid interface UUID on one of three TCP endpoints and sending a crafted PDU:

Text
| Port | Service | Daemon ||------|---------|--------|| 2012 | VMware Directory Service | `vmdird` || 2014 | VMware Certificate Authority | `vmcad` || 2020 | VMware Authentication Framework | `vmafdd` |

The advisories rate all three 9.8. What they do not tell you is how much daylight there is between "9.8 pre-auth RCE" as a primitive and "9.8 pre-auth RCE" as something an unauthenticated attacker can reliably reach with no leak, no login and no oracle. Making that determination was the whole project.

CVE-2024-38812 is a CVSS 9.8 pre-auth heap overflow in libdcerpc.so, the DCE/RPC runtime shared by vCenter's vmdird, vmcad and vmafdd daemons. It is on the CISA KEV list with confirmed in-the-wild exploitation, but at the time of this research no public no-login RCE proof-of-concept existed, and no writeup had fully disassembled why it works.

The single biggest advantage is that this code is open source. libdcerpc.so is not bespoke VMware code. It descends from Likewise Open (later PBIS / BeyondTrust AD Bridge), whose DCE/RPC runtime is a fork of the OSF DCE 1.1 reference implementation. The NDR stub interpreter, the rpc_ss_ndr_* family where the bug lives, is therefore readable C on GitHub. Every function Ghidra decompiled could be mapped back to ndrui.c, cnsassm.c and friends. That collapses the reversing effort from "figure out this blob" to "confirm this known code against this specific build." If you take one methodology lesson from this article: identify your target's upstream lineage before you start staring at decompiler output.

Setup

The work is a network-only exploitation study of vCenter's directory service, running from Ghidra decompilation to a build-constant that turns a "reliable DoS" into reliable pre-auth RCE. The work used Ghidra decompilation and GDB confirmation against lab vCenter appliances. Reliability figures were measured against freshly-restarted lab appliances, including a minimal 3-service idle lab and a 4-CPU appliance.

The write primitive and the demonstrated leak are pre-authentication. Reaching the endpoints on ports 2012, 2014 and 2020 and binding a valid interface UUID is the entry condition.

Finding it

A 90-second NDR primer

Connection-oriented DCE/RPC over TCP starts every PDU with a common 16-byte header (version, packet type, flags, data representation, fragment length, auth length, call id). To reach the two bug classes you only need two body types.

BIND body, where Class A lives, carries a presentation-context list:

Text
u16 max_xmit_fragu16 max_recv_fragu32 assoc_group_idu8  n_context_elem     ← the count Class A abuses...p_cont_elem_t[n_context_elem]

REQUEST stub, where Class B lives, carries NDR-marshalled parameters. The relevant NDR concept is the conformant varying array. A variable-length array is serialised with metadata before its elements:

  • a conformance header, the maximum element count (max_count, call it Z);
  • a variance header, an offset (lower) and an actual count.

The interpreter uses these counts to size an allocation and to place elements. Controlling them is the entire game.

Class A: a clean crash that teaches restraint (CVE-2024-37079/37080)

Class A is the "fast win" and a good warm-up, so it is worth understanding even though it ends in a dead end for RCE.

The naive theory, "send a huge context list and overflow", is wrong. The negotiate routine has a size gate:

Text
result_list_size = 24 * n + 4if (result_list_size > large_frag_size - base_header):       return 0x1beef

That caps you at n = 169 contexts. The real bug is in the auth trailer path that runs afterward. With n = 169, the BIND_ACK response buffer is filled to ~4092 of 4096 bytes, and then rpc__cn_assoc_process_auth_tlr computes the remaining space for an NTLMSSP challenge:

Text
auth_len = large_frag_size - (header_size + 8);

An integer underflow. That 0xFFFFFFFC (~4 GB) sails through the NTLMSSP formatter's bounds check:

Text
if (challenge_len <= *auth_value_len) {                  memcpy(auth_value, challenge, challenge_len);      }

producing a ~170-byte heap overflow from a single ~7500-byte packet, no grooming required. Reproducible crash of vmcad on every attempt.

Why Class A dies here: pushing hard on weaponising it reached a firm negative, which is itself a result worth publishing.

  • The overflow content is server-generated, not attacker-controlled. The memcpy source is the NTLMSSP Type-2 Challenge: a fixed signature, a random 8-byte server nonce, and server config strings. The only attacker-influenced field (the masked Negotiate flags) lands inside the fragbuf's own trailing slack and never reaches the neighbouring chunk. You smash the adjacent object with a random nonce; a crash, never a controllable overlap.
  • No info-leak either. The underflow inflates the response length, so the reply does transmit ~170 bytes past the buffer, but the inflated length equals the write extent, so you read back your own writes, not un-written adjacent heap.

Verdict: Class A is a clean, reliable, single-packet pre-auth DoS and nothing more on this build. Knowing exactly why a promising avenue is dead is what lets you stop spending time on it.

Class B: the real target (CVE-2024-38812)

The NDR interpreter reaches a conformant-varying array (type code 0x17) and walks this chain (source names from ndrui.c):

Text
rpc_ss_ndr_unmar_interp  (case 0x17)  → unmar_Z_values         reads max_count Z from the wire  → unmar_range_list       reads offset A + actual_count B; sets lower=A, upper=A+B  (NO validation)  → alloc_storage          malloc sized from Z  → u_var_or_open_arr      checks (upper - lower) <= Z  ← partial, and useless  → contiguous_elt         ← THE BUG   → unmar_by_copying       memcpy(dest, wire_data, count * elem_size)

The vulnerable arithmetic in rpc_ss_ndr_contiguous_elt is, in essence:

Text
array_addr += element_size * range_list->lower;

The only guard anywhere on the path checks (upper - lower) <= Z. An attacker simply sets lower to a large displacement, keeps upper - lower small (so it passes), and makes Z large enough to pass its own check. lower is never itself bounded.

Exploitation

Step 1: parameterise the relative heap write

Set the four wire fields and you get a fully-parameterised relative heap write:

Text
| Wire field | Control | Effect ||---|---|---|| `max_count` (Z) | full uint32 | `malloc(Z * elem_size)`, you size the allocation (heap shaping) || offset (A → `lower`) | full uint32, unchecked | `dest = alloc_base + A * elem_size`, you pick the displacement || actual_count (B) | uint32, must be ≤ Z | `memcpy` length = `B * elem_size`, you pick the write size || element data | B·elem_size bytes | `memcpy` source, you pick the bytes |

For a wchar_t array, elem_size = 2. This is ASLR-agnostic for nearby heap objects: the displacement is relative to the allocation, so you do not need to know absolute addresses to corrupt a neighbour.

Step 2: confirm the primitive under GDB

The primitive was confirmed under GDB exactly as the decompilation predicted. Firing A = 0x41414141 displaced the memcpy destination by 0x82828282 (~2 GB) into unmapped memory:

Text
Thread 17 "vmafdd" received signal SIGSEGV0x…  memcpy+31: movups %xmm0,(%rdi)  rdi = alloc_base + 0x82828282     ← faulting destination (= A * 2)  rsi = <wire data from the socket> ← fully controlled source  rdx = 0x20                        ← write size (B * 2)#1 rpc_ss_ndr_unmar_by_copying     ndrui.c:655#2 rpc_ss_ndr_u_var_or_open_arr    ndrui.c:1197...#5 vmafdd opnum 3 stub#6 rpc__cn_call_executor

The Ghidra offsets matched the live return address to the byte. Static RE and runtime were now one artifact.

Step 3: turn the write into code execution

Two working RCE variants exist, both against the fixed-address advantage that the daemons are non-PIE (ET_EXEC) and import system(), so system@plt sits at a constant address (e.g. 0x41AA80 in vmdird):

  • GOT overwrite: request 1 overwrites GOT[free] with system(); request 2 stashes a shell command in the array that NDR cleanup will free(), turning free(array) into system(cmd). Confirmed uid=0 on vmafdd.
  • Receive-fragbuf callback hijack (the cleaner path): partial-PDU grooming parks a field of 0x1050 receive-fragbufs in front of the NDR allocation. The overflow overwrites a co-located fragbuf's dealloc callback pointer (+0x18) with system@plt, and writes the command string at fragbuf+0x00, which is the RDI argument at call time. Closing the groom connections frees the fragbuf → (*(fragbuf+0x18))(fragbuf) == system(cmd).

The callback-hijack path was verified purely over the network with a connect-back: a ≤23-byte curl HOST:PORT payload, with the target's own inbound HTTP request to the listener as self-authenticating proof of execution. On a 4-CPU appliance it landed 4/4 when the displacement was supplied.

Step 4: the same function reads as well as it writes

Every public analysis of CVE-2024-38812 describes the write. The part nobody had documented: rpc_ss_ndr_contiguous_elt is shared by the marshal (send) interpreter too.

On the outbound path, rpc_ss_ndr_m_var_or_open_arr → contiguous_elt → rpc_ss_ndr_marsh_by_copying performs:

Text
memcpy(response_buffer, array_base + element_size * lower, (upper - lower) * element_size);

Same unbounded lower, now applied to the source of a copy that goes into the response. And the marshal path has no bound on lower at all, not even the toothless upper - lower ≤ Z check the unmarshal side has. That is an arbitrary relative read that exfiltrates memory onto the wire. Same root cause, opposite direction: the ASLR-defeat leak that people assumed had to come from some separate bug is sitting inside the RCE bug itself.

It was proved live and non-destructively. With range_list->lower set so contiguous_elt pointed at libdcerpc's load base, a benign pre-auth GetHeartbeatStatus call (vmafdd opnum 39, which marshals wchar service-name strings through exactly this interpreter) returned a response that carried libdcerpc's ELF header, 7f 45 4c 46 …, straight onto the wire. Module base disclosed; ASLR defeated. Two independent corruption→leak targets were then demonstrated (the executor-arena range_list->lower, and a registry pszServiceName pointer) that make a real remote attacker reach the same read.

The remaining barrier for a turnkey network-only leak is heap co-location, not mechanism: the write and the object you want to read have to land in the same glibc arena, which is a function of concurrency and load. On a minimal 3-service idle lab that co-location is rare; on a continuously-loaded production appliance (more connections than the arena cap of 8 × ncpus, forcing threads to share arenas) it is exactly the condition. A 16-connection burst produced 5 shared write marshal arenas, including the main-heap arena that holds the registry. So the leak is production-gated, not mechanism-gated, which is the reason these bugs manifest as full RCE against real fleets rather than against a stripped lab.

Step 5: the DoS to RCE reversal

For the vmdird callback hijack, one value was treated as the hard, per-instance-random unknown: the forward displacement D0 from the NDR allocation to a co-located groom fragbuf. Believing that value required a pre-auth oracle, a "machine-gunner" was built that sweeps the displacement space blind, and a disciplined experiment was run to measure it:

  • 6 trials, fresh daemon each, cores enabled, pure-network, auto-classified → RCE 0/6, DoS 6/6.

Two earlier runs had converged to RCE (~235 salvos), but crash-light retests swept past that point (272,400 salvos) with zero hits, and a gold-standard snapshot-revert control also DoS'd. So the early "successes" were outliers. The conclusion written at the time was: "unauthenticated blind impact is a reliable DoS, not autonomous RCE". The DoS failure mode was even recorded. That was a correct conclusion about blind wide-candidate sweeping.

Then something changed. Re-measured with a fixed, simple groom recipe (120 partial-PDU fragbufs + 12 warm-up requests), the displacement is not a per-instance secret at all, it is a build-constant of the recipe: lower = 0x820. Co-location was 30/30. A single hardcoded 0x820 shot popped a freshly-restarted vmdird 6 of 8 times (~75%) across independent instances and ASLR layouts, with every miss benign (the daemon survived 8/8). Because the offset is relative (NDR→fragbuf) and recipe-fixed, ASLR only shifts the absolute arena base, so an attacker derives 0x820 offline from the same shipping build, with no login, no oracle and no per-target recon.

That inverts the headline. The 0/6 DoS was the cost of firing out-of-region candidates you do not need. Fire the one in-region build-constant instead:

  • Reliable pre-auth, network-only RCE: no leak, no oracle, no login. ~75% first-shot, benign misses, so 1-3 paced shots exceed 98%. uid=9899(vmdird) execution confirmed on the wire.

The wide-blind DoS remains the degenerate, mis-tuned case; the correct exploit simply does not fire out-of-region. The lesson is not "I was wrong", it is that the same primitive can be a DoS or an RCE depending entirely on one modelling assumption, and rigorous experiments are only as good as the assumption they encode.

The main caveat: every reliability number above is measured against freshly-restarted lab appliances. The build-constant is recipe-relative and ASLR-invariant (a strong argument that it generalises), but a continuously-loaded production appliance's baseline arena state is a variable that was not tested and which could shift the recipe's displacement or first-shot rate.

Step 6: the safe reset

A subtle engineering detail makes the PoC dependable. The build-constant displacement is only valid against a fresh arena. Hammer one target and server-side CLOSE-WAIT groom buildup slowly drifts the arena, dropping the hit rate. The fix is counter-intuitive: deliberately crash the service to reset it.

An out-of-region relative write faults vmdird; the Likewise supervisor (lwsmd) auto-restarts a fresh instance in ~1.5-3 s, in which lower = 0x820 is valid again. The critical constraint, learned the hard way, is that this must fire exactly once:

Text
CRITICAL: never re-fire. lwsmd auto-restarts vmdir in ~1.5-3s, so a re-fire would crash the restarted instance and the 2nd consecutive crash trips lwsmd's autorestart throttle → hard stop → and the service stays dead even though the caller only asked for one reset.

So the exploit's own crash primitive doubles as a heap-state reset that restores exploitation reliability, but respecting the supervisor's throttle keeps it a single clean reset rather than a self-inflicted denial of service.

Root cause

The root cause is a single unvalidated NDR conformance field (lower) that the array interpreter multiplies straight into a memcpy destination pointer. It yields a controlled-offset, controlled-size, controlled-data relative heap write during [in] unmarshalling, pre-authentication.

The only guard on the unmarshal path, (upper - lower) <= Z in u_var_or_open_arr, is partial and useless because lower is never itself bounded. The marshal path has no bound on lower at all. The daemons are non-PIE (ET_EXEC) and import system(), so system@plt sits at a constant address, and the displacement is relative to the allocation, so ASLR does not protect nearby heap objects.

Impact

An unauthenticated network attacker can reach the three DCE/RPC endpoints and, depending on how the primitive is fired, obtain either a denial of service or remote code execution.

  • The DoS is disk-driven and self-recoverable. Every crash writes an up-to-2 GB core to /storage/core. A sustained sweep fills the partition, at which point a crash can no longer restart cleanly and the service enters a crash-loop meltdown with all ports down. This is partition exhaustion, not persistent data corruption: clear the cores and the service restarts.
  • On freshly-restarted lab appliances the RCE path is pre-auth, network-only, with no leak, no oracle and no login: ~75% first-shot, benign misses, so 1-3 paced shots exceed 98%. uid=9899(vmdird) execution was confirmed on the wire, and uid=0 on vmafdd via the GOT overwrite.
  • The read primitive is an ASLR defeat living inside the write CVE: with lower set so contiguous_elt pointed at libdcerpc's load base, a benign pre-auth GetHeartbeatStatus call returned its ELF header on the wire. The remaining barrier for a turnkey network-only leak is heap co-location, which is production-gated rather than mechanism-gated.

The reliability numbers are measured against freshly-restarted lab appliances; a continuously-loaded production appliance's baseline arena state was not tested and could shift the recipe's displacement or first-shot rate.

Fix

The U3p→U3t diff isolates the Class B fix to an integer-overflow guard in rpc_ss_ndr_allocation_size (the dimension-product), lower-bound sign checks in contiguous_elt, and bounds in u_var_or_open_arr, ~20 of 1485 functions changed. That diff corroborates the array-conformance root cause. Patch to U3t.

Defensive measures from the research:

  • Bound or rotate core dumps for the RPC daemons, or give them a dedicated size-capped core partition.
  • High-fidelity detection: rapid growth of /storage/core/core.{vmdird,vmcad,vmafdd}.* and repeated watchdog/lwsmd respawns in /var/log/vmware/<daemon>/ are near-unambiguous indicators of exploitation attempts against these endpoints. Alert on both.
  • A positive hardening observation: on this build, liblber NUL-terminates decoded LDAP values, which closes the classic errorMessage-%s-over-read leak class on port 389. Worth preserving in future builds. Three separate external leak surfaces were confirmed negative precisely because of details like this.
  • Segmenting management-plane RPC (2012/2014/2020) away from anything an attacker can reach remains the single highest-value control: these are unauthenticated endpoints doing memory-unsafe parsing.

Variants to test

A positive result is a response carrying recognisable ELF bytes (7f 45 4c 46) or other module data on the wire. A positive result is co-location at 30/30 and a first-shot hit rate near 75% with benign misses. A positive result is uid=0 execution on the target daemon. A positive result is an inbound connect-back from the target. A positive result is shared arenas including the main-heap arena that holds the registry, which is the condition for a turnkey network-only leak. A positive result is a reproducible crash of vmcad on every attempt, with no controllable overlap and no info-leak.

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. 31 min read.

What happened, in plain words

A security researcher spent a long time looking at a piece of software called vCenter Server, which companies use to manage their virtual machines. He studied a bug in it and found capabilities that the public record did not have. The bug lets someone who has never logged in send a specially crafted message over the network and make the server crash or run the attacker's commands, and the same function can also read memory into a response.

The bug has a name, CVE-2024-38812. A CVE is a public catalogue number for a known security flaw, like a case number for a crime. The researcher's article is unusual because it is honest about being wrong: he first concluded the bug could only crash the server, then discovered his own assumption was mistaken and that it could actually run code. He also documented a capability in the same bug that no public analysis had described: the bug can read memory as well as write it.

This article walks through his work from the beginning, explaining every term as it appears. You do not need any security background. You need to know what a browser is and roughly what a server is, and that is all.

From the original on medium.com

The image at the top of the article accompanies the write-up, described as a network-only exploitation study of VMware vCenter's directory service, from Ghidra decompilation to a build-constant that turns a "reliable DoS" into reliable pre-auth RCE. In plain words, the researcher studied how to attack vCenter over the network alone, starting by reading the compiled program with a tool called Ghidra, and ending with a fixed number baked into the build that upgraded a mere crash into reliable remote code execution before login.

1. Why vCenter's RPC stack is worth the effort

What vCenter is

vCenter Server is the control panel for a VMware estate. VMware is a company whose software lets one physical computer pretend to be many computers at once; each of those pretend computers is a virtual machine, and the software that runs them is called ESXi. vCenter is the dashboard that manages all of those ESXi machines.

Because vCenter sits above everything else, breaking into it is like getting the master key to a building rather than the key to one office. An attacker who controls vCenter is one step away from every ESXi host underneath it. That is why the 2024 DCE/RPC vulnerabilities became a ransomware favourite.

The three bugs

In 2024, three network-facing security flaws were published for vCenter, in two VMware security advisories. An advisory is the official notice a vendor publishes when it fixes a flaw. The table below is copied from the article:

Text
| CVE | VMSA | Class | Mechanism | CVSS ||-----|------|-------|-----------|------|| CVE-2024-37079 | 2024-0012 | A | DCE/RPC association **auth-trailer integer underflow** → heap overflow | 9.8 || CVE-2024-37080 | 2024-0012 | A | Same class, `ALTER_CONTEXT` sibling path | 9.8 || CVE-2024-38812 | 2024-0019 | B | NDR **conformant/varying-array** pointer arithmetic → relative heap write | 9.8 |

Line by line, in plain words:

  • CVE is the catalogue number. VMSA is the identifier of the VMware advisory that fixed it. Class is the researcher's own grouping: A and B are two different families of bug. Mechanism is the technical cause. CVSS is a score from 0 to 10 for how bad a flaw is; 9.8 is near the top of the scale.
  • CVE-2024-37079 is a bug where a number in a message is made to wrap around below zero (an integer underflow), which then causes the program to write more data than it reserved space for (a heap overflow).
  • CVE-2024-37080 is the same kind of bug reached through a different message, called ALTER_CONTEXT.
  • CVE-2024-38812 is the one this article is about: a mistake in how the program calculates where to put data when it receives a list of items (an array), which lets an attacker write data at a location of their choosing relative to a reserved block of memory.

Where the bugs live

All three are unauthenticated, meaning no username or password is needed, and they can be reached by connecting to one of three network ports and sending a crafted message. A port is like a numbered door on a computer; different services listen on different doors. A PDU is simply a packet of data in this particular protocol.

Text
| Port | Service | Daemon ||------|---------|--------|| 2012 | VMware Directory Service | `vmdird` || 2014 | VMware Certificate Authority | `vmcad` || 2020 | VMware Authentication Framework | `vmafdd` |
  • Port 2012 is the VMware Directory Service, run by a background program (a daemon) called vmdird. A directory service is a database of users and objects, similar in spirit to a phone book.
  • Port 2014 is the VMware Certificate Authority, run by vmcad. A certificate authority issues digital certificates, the electronic ID cards that computers use to prove who they are.
  • Port 2020 is the VMware Authentication Framework, run by vmafdd. Authentication means checking who you are when you log in.

The advisories rate all three bugs 9.8. What the advisories do not tell you is how much daylight there is between "9.8 pre-auth RCE" as a theoretical capability and "9.8 pre-auth RCE" as something an attacker can actually and reliably do, with no leaked information, no login and no feedback from the server. RCE stands for remote code execution: making the target computer run your code. An oracle, in security slang, is any signal from the target that tells the attacker whether a guess was right. Making that determination was the whole project.

The biggest advantage: the code is open source

libdcerpc.so is a shared library, a reusable bundle of code that several programs load. It is not bespoke VMware code. It descends from Likewise Open (later PBIS / BeyondTrust AD Bridge), whose DCE/RPC runtime is a fork of the OSF DCE 1.1 reference implementation. A fork is a copy of a project that then develops separately. The NDR stub interpreter, the rpc_ss_ndr_* family of functions where the bug lives, is therefore readable C source code on GitHub. C is a programming language.

Every function that Ghidra decompiled could be mapped back to files such as ndrui.c and cnsassm.c. Ghidra is a free tool that takes a compiled program and tries to turn it back into readable code, a process called decompilation. That collapses the reversing effort from "figure out this blob" to "confirm this known code against this specific build." Reversing means working backwards from a finished program to understand how it works.

The methodology lesson: identify your target's upstream lineage before you start staring at decompiler output. Lineage here means the family tree of the software, the older project it came from.

2. A 90-second NDR primer

What DCE/RPC and NDR are

DCE/RPC is a protocol, a set of rules for how two computers talk. RPC stands for remote procedure call: one computer asks another to run a function, as if the function were local. NDR is the rulebook for how the arguments of that function are packed into bytes on the wire. Packing is called marshalling; unpacking is called unmarshalling.

Connection-oriented DCE/RPC over TCP starts every PDU with a common 16-byte header. A header is the fixed first part of a message that says what kind of message it is. The header contains the version, packet type, flags, data representation, fragment length, auth length and call id. A fragment is a piece of a larger message.

To reach the two bug classes you only need two body types.

The BIND body

The BIND body, where Class A lives, carries a presentation-context list. A BIND is the opening handshake where the client says which service it wants to talk to. A presentation context is one entry in that list, naming a service and a version.

Text
u16 max_xmit_fragu16 max_recv_fragu32 assoc_group_idu8  n_context_elem     ← the count Class A abuses...p_cont_elem_t[n_context_elem]
  • u16 max_xmit_frag is the largest fragment the client will send, as a 16-bit number.
  • u16 max_recv_frag is the largest fragment it will accept.
  • u32 assoc_group_id is an identifier for the group of connections, as a 32-bit number.
  • u8 n_context_elem is a single byte holding the number of contexts in the list. This is the count that Class A abuses.
  • p_cont_elem_t[n_context_elem] is the list itself, with as many entries as that count says.

The REQUEST stub

The REQUEST stub, where Class B lives, carries NDR-marshalled parameters. A stub is the packed form of a function call's arguments. The relevant NDR concept is the conformant varying array. A variable-length array is serialised with metadata before its elements:

  • a conformance header, the maximum element count (max_count, call it Z);
  • a variance header, an offset (lower) and an actual count.

An array is an ordered list of items. Conformant means the message declares the maximum size up front; varying means it also declares which slice of that maximum is actually present. The interpreter uses these counts to size an allocation and to place elements. An allocation is a reserved block of memory. Controlling these counts is the entire game.

3. Class A: a clean crash that teaches restraint (CVE-2024-37079/37080)

Class A is the "fast win" and a good warm-up, so it is worth understanding even though it ends in a dead end for RCE.

The naive theory, "send a huge context list and overflow", is wrong. The negotiate routine has a size gate:

Text
result_list_size = 24 * n + 4if (result_list_size > large_frag_size - base_header):       return 0x1beef
  • result_list_size = 24 * n + 4 calculates how big the list will be: 24 bytes per context, plus 4 bytes of overhead.
  • if (result_list_size > large_frag_size - base_header): checks whether that size would exceed the space left in the buffer after the header. A buffer is a fixed-size area of memory used to hold data temporarily.
  • return 0x1beef is an error code, a made-up number the program returns to say "no".

That caps you at n = 169 contexts. The real bug is in the auth trailer path that runs afterwards. An auth trailer is extra authentication data appended to a message. With n = 169, the BIND_ACK response buffer is filled to about 4092 of 4096 bytes, and then rpc__cn_assoc_process_auth_tlr computes the remaining space for an NTLMSSP challenge:

Text
auth_len = large_frag_size - (header_size + 8);
  • auth_len is meant to be the number of bytes still free for authentication data.
  • large_frag_size - (header_size + 8) subtracts the header and 8 more bytes from the total. Because the buffer is already almost full, this subtraction goes below zero and wraps around to a huge number.

An integer underflow. That 0xFFFFFFFC (about 4 GB) sails through the NTLMSSP formatter's bounds check. NTLMSSP is a Microsoft authentication protocol; a challenge is the server's "prove it" message. A bounds check is a test that data fits in its buffer.

Text
if (challenge_len <= *auth_value_len) {                  memcpy(auth_value, challenge, challenge_len);      }
  • if (challenge_len <= *auth_value_len) asks whether the challenge fits in the space available.
  • memcpy(auth_value, challenge, challenge_len); copies the challenge into the buffer. memcpy is a standard C function that copies a given number of bytes from one place to another.

Because the available length was inflated to about 4 GB, the check passes and the copy overruns the buffer, producing a roughly 170-byte heap overflow from a single roughly 7500-byte packet, with no grooming required. The heap is the general-purpose pool of memory a program uses for data it creates while running. Grooming means deliberately arranging memory so that a later overflow lands on something useful. On this build the result is a reproducible crash of vmcad on every attempt.

Why Class A dies here

Pushing hard on weaponising it reached a firm negative, which is itself a result worth publishing:

  • The overflow content is server-generated, not attacker-controlled. The memcpy source is the NTLMSSP Type-2 Challenge: a fixed signature, a random 8-byte server nonce, and server config strings. A nonce is a one-time random value. The only attacker-influenced field (the masked Negotiate flags) lands inside the fragbuf's own trailing slack and never reaches the neighbouring chunk. A fragbuf is a buffer holding one fragment of a message; slack is unused space at its end; a chunk is a unit of heap memory.
  • No info-leak either. The underflow inflates the response length, so the reply does transmit about 170 bytes past the buffer, but the inflated length equals the write extent, so you read back your own writes, not un-written adjacent heap. An info-leak is when a program reveals memory it should not.

Verdict: Class A is a clean, reliable, single-packet pre-auth DoS and nothing more on this build. DoS means denial of service: making a service unavailable. Knowing exactly why a promising avenue is dead is what lets you stop spending time on it.

4.1 Class B: the real target (CVE-2024-38812)

The NDR interpreter reaches a conformant-varying array (type code 0x17) and walks this chain (source names from ndrui.c):

Text
rpc_ss_ndr_unmar_interp  (case 0x17)  → unmar_Z_values         reads max_count Z from the wire  → unmar_range_list       reads offset A + actual_count B; sets lower=A, upper=A+B  (NO validation)  → alloc_storage          malloc sized from Z  → u_var_or_open_arr      checks (upper - lower) <= Z  ← partial, and useless  → contiguous_elt         ← THE BUG   → unmar_by_copying       memcpy(dest, wire_data, count * elem_size)
  • rpc_ss_ndr_unmar_interp (case 0x17) is the main unpacking function, and 0x17 is the numeric code that means "conformant-varying array".
  • unmar_Z_values reads max_count, called Z, from the incoming bytes. "From the wire" means from the network data.
  • unmar_range_list reads the offset A and the actual count B, then sets lower = A and upper = A + B. There is no validation here: nothing checks that these numbers make sense.
  • alloc_storage calls malloc to reserve memory sized from Z. malloc is the standard C function that reserves memory.
  • u_var_or_open_arr checks (upper - lower) <= Z. This is partial and useless, as we will see.
  • contiguous_elt is where the bug is.
  • unmar_by_copying performs memcpy(dest, wire_data, count * elem_size): it copies the received bytes into the destination.

The vulnerable arithmetic in rpc_ss_ndr_contiguous_elt is, in essence:

Text
array_addr += element_size * range_list->lower;
  • array_addr is the address where the program plans to put the data.
  • += means "add to the current value".
  • element_size * range_list->lower multiplies the size of one element by the attacker-supplied lower offset. If lower is huge, the destination jumps far away from where it should be.

The only guard anywhere on the path checks (upper - lower) <= Z. An attacker simply sets lower to a large displacement, keeps upper - lower small (so it passes), and makes Z large enough to pass its own check. lower is never itself bounded.

4.2 The primitive

A primitive, in security, is a basic capability you have gained, such as "write a few bytes somewhere". Set the four wire fields and you get a fully-parameterised relative heap write:

Text
| Wire field | Control | Effect ||---|---|---|| `max_count` (Z) | full uint32 | `malloc(Z * elem_size)`, you size the allocation (heap shaping) || offset (A → `lower`) | full uint32, unchecked | `dest = alloc_base + A * elem_size`, you pick the displacement || actual_count (B) | uint32, must be ≤ Z | `memcpy` length = `B * elem_size`, you pick the write size || element data | B·elem_size bytes | `memcpy` source, you pick the bytes |
  • max_count (Z): a full 32-bit unsigned integer (uint32 means a whole number from 0 to about 4 billion). It controls malloc(Z * elem_size), so you choose how big the allocation is. This is heap shaping: arranging memory to your advantage.
  • offset (A → lower): also a full uint32, unchecked. It controls dest = alloc_base + A * elem_size, so you choose where, relative to the allocation, the write lands. The displacement is the distance from the start of the allocation.
  • actual_count (B): a uint32 that must be no larger than Z. It controls the memcpy length, so you choose how many bytes are written.
  • element data: B times elem_size bytes. It is the memcpy source, so you choose the bytes themselves.

For a wchar_t array, elem_size = 2. wchar_t is a "wide character", a text character stored in more than one byte; here each one takes 2 bytes. This is ASLR-agnostic for nearby heap objects: the displacement is relative to the allocation, so you do not need to know absolute addresses to corrupt a neighbour. ASLR, address space layout randomisation, is an operating-system defence that shuffles where things sit in memory each time a program starts, so an attacker cannot hardcode addresses.

Confirming the primitive under GDB

The primitive was confirmed under GDB exactly as the decompilation predicted. GDB is a debugger, a tool that lets you pause a running program and inspect its memory. Firing A = 0x41414141 displaced the memcpy destination by 0x82828282 (about 2 GB) into unmapped memory. Unmapped means no memory is assigned there, so touching it crashes the program.

Text
Thread 17 "vmafdd" received signal SIGSEGV0x…  memcpy+31: movups %xmm0,(%rdi)  rdi = alloc_base + 0x82828282     ← faulting destination (= A * 2)  rsi = <wire data from the socket> ← fully controlled source  rdx = 0x20                        ← write size (B * 2)#1 rpc_ss_ndr_unmar_by_copying     ndrui.c:655#2 rpc_ss_ndr_u_var_or_open_arr    ndrui.c:1197...#5 vmafdd opnum 3 stub#6 rpc__cn_call_executor
  • Thread 17 "vmafdd" received signal SIGSEGV says the 17th thread of the vmafdd program crashed with a segmentation fault, the operating system's way of saying "this program touched memory it was not allowed to".
  • memcpy+31: movups %xmm0,(%rdi) is the exact machine instruction that failed: it is trying to write data to the address held in the register rdi. A register is a tiny, very fast storage slot inside the processor.
  • rdi = alloc_base + 0x82828282 shows the destination address: the start of the allocation plus the huge displacement, which equals A times 2.
  • rsi = <wire data from the socket> shows the source of the copy: the bytes the attacker sent over the network.
  • rdx = 0x20 shows the write size: 32 bytes, which is B times 2.
  • The numbered lines #1 to #6 are the call stack, the list of functions that led here, from the innermost (rpc_ss_ndr_unmar_by_copying at ndrui.c:655) outwards to the vmafdd handler for operation number 3 and the RPC call executor.

The Ghidra offsets matched the live return address to the byte. Static RE and runtime were now one artifact. Static RE means reverse engineering without running the program; runtime means observing it while it runs.

Turning the write into code execution

Two working RCE variants exist, both relying on the daemons being non-PIE (ET_EXEC) and importing system(), so system@plt sits at a constant address (e.g. 0x41AA80 in vmdird).

  • Non-PIE means the program is not position-independent: it is always loaded at the same address, so its internal addresses do not change between runs. ET_EXEC is the file type that marks such a program.

  • system() is a standard C function that runs a shell command. Import means the program borrows it from a shared library.

  • system@plt is the small trampoline the program uses to jump to system(). PLT stands for procedure linkage table. Because the program is non-PIE, this trampoline sits at a constant address.

  • GOT overwrite: request 1 overwrites GOT[free] with system(); request 2 stashes a shell command in the array that NDR cleanup will free(), turning free(array) into system(cmd). Confirmed uid=0 on vmafdd. The GOT, global offset table, is the program's address book for borrowed functions; free() is the standard C function that releases memory. uid=0 means the root user, the most powerful account on a Linux system.

  • Receive-fragbuf callback hijack (the cleaner path): partial-PDU grooming parks a field of 0x1050 receive-fragbufs in front of the NDR allocation. The overflow overwrites a co-located fragbuf's dealloc callback pointer (+0x18) with system@plt, and writes the command string at fragbuf+0x00, which is the RDI argument at call time. Closing the groom connections frees the fragbuf, so (*(fragbuf+0x18))(fragbuf) == system(cmd). A callback is a function the program will call later; a dealloc callback is called when the buffer is freed. A pointer is a memory address stored as a value. RDI is the processor register that holds the first argument to a function on this platform.

The callback-hijack path was verified purely over the network with a connect-back: a payload of at most 23 bytes, curl HOST:PORT, with the target's own inbound HTTP request to the listener as self-authenticating proof of execution. A connect-back is when the victim connects out to the attacker, proving the attacker's code ran. curl is a command-line tool that fetches a URL. On a 4-CPU appliance the callback-hijack connect-back landed 4/4 when the displacement was supplied.

That parenthetical, "when the displacement was supplied", is where things get interesting.

5. The novel bit: the CVE reads as well as it writes

Every public analysis of CVE-2024-38812 describes the write. Here is the part nobody had documented: rpc_ss_ndr_contiguous_elt is shared by the marshal (send) interpreter too.

On the outbound path, rpc_ss_ndr_m_var_or_open_arr → contiguous_elt → rpc_ss_ndr_marsh_by_copying performs:

Text
memcpy(response_buffer, array_base + element_size * lower, (upper - lower) * element_size);
  • response_buffer is where the reply to the client is being built.
  • array_base + element_size * lower is the source address: the start of the array plus the attacker-chosen displacement. The same unbounded lower is now applied to the source of a copy that goes into the response.
  • (upper - lower) * element_size is how many bytes are copied.

The marshal path has no bound on lower at all, not even the toothless upper - lower <= Z check the unmarshal side has. That is an arbitrary relative read that exfiltrates memory onto the wire. Exfiltrate means to send data out. Same root cause, opposite direction: the ASLR-defeat leak that people assumed had to come from some separate bug is sitting inside the RCE bug itself.

It was proved live and non-destructively. With range_list->lower set so contiguous_elt pointed at libdcerpc's load base, a benign pre-auth GetHeartbeatStatus call (vmafdd opnum 39, which marshals wchar service-name strings through exactly this interpreter) returned a response that carried libdcerpc's ELF header, 7f 45 4c 46 …, straight onto the wire. Module base disclosed; ASLR defeated.

  • Load base is the address where a library was placed in memory.
  • Benign means harmless: a normal call that any client may make.
  • Opnum 39 is the operation number, the identifier of the function being called.
  • ELF header is the fixed first part of a Linux program file; its first four bytes are always 7f 45 4c 46. Seeing those bytes come back in a reply proves the server sent back its own program file's beginning.

Two independent corruption-to-leak targets were then demonstrated (the executor-arena range_list->lower, and a registry pszServiceName pointer) that make a real remote attacker reach the same read, though a turnkey leak still needs heap co-location. An arena is a region of heap memory that a group of threads shares; a thread is one line of execution inside a program. The registry here is the service-name registry the daemon keeps.

The remaining barrier for a turnkey network-only leak is heap co-location, not mechanism: the write and the object you want to read have to land in the same glibc arena, which is a function of concurrency and load. glibc is the standard C library on Linux. Co-location means being in the same place. On a minimal 3-service idle lab that co-location is rare; on a continuously-loaded production appliance (more connections than the arena cap of 8 × ncpus, forcing threads to share arenas) it is exactly the condition. ncpus is the number of processor cores. A 16-connection burst produced 5 shared write marshal arenas, including the main-heap arena that holds the registry. So the leak is production-gated, not mechanism-gated, which is the reason these bugs manifest as full RCE against real fleets rather than against a stripped lab.

6. Being wrong well: the DoS to RCE reversal

This is the part of the project the researcher would want a junior researcher to read.

For the vmdird callback hijack, one value was treated as the hard, per-instance-random unknown: the forward displacement D0 from the NDR allocation to a co-located groom fragbuf. Believing that value required a pre-auth oracle, a "machine-gunner" was built that sweeps the displacement space blind, and a disciplined experiment was run to measure it:

  • 6 trials, fresh daemon each, cores enabled, pure-network, auto-classified, giving RCE 0/6 and DoS 6/6.

A salvo is one round of shots. Two earlier runs had converged to RCE (about 235 salvos), but crash-light retests swept past that point (272,400 salvos) with zero hits, and a gold-standard snapshot-revert control also DoS'd. A control is a comparison run designed to rule out mistakes. So the early "successes" were outliers. The conclusion written at the time was: "unauthenticated blind impact is a reliable DoS, not autonomous RCE". The DoS failure mode was even recorded. That was a correct conclusion about blind wide-candidate sweeping.

Then something changed. Re-measured with a fixed, simple groom recipe (120 partial-PDU fragbufs plus 12 warm-up requests), the displacement is not a per-instance secret at all, it is a build-constant of the recipe: lower = 0x820. A recipe here is a fixed sequence of setup steps. Co-location was 30/30. A single hardcoded 0x820 shot popped a freshly-restarted vmdird 6 of 8 times (about 75%) across independent instances and ASLR layouts, and the daemon survived 8/8. Because the offset is relative (NDR to fragbuf) and recipe-fixed, ASLR only shifts the absolute arena base, so an attacker derives 0x820 offline from the same shipping build, with no login, no oracle and no per-target recon.

That inverts the headline. The 0/6 DoS was the cost of firing out-of-region candidates you do not need. Fire the one in-region build-constant instead:

  • On freshly-restarted lab appliances: pre-auth, network-only RCE with no leak, no oracle and no login, about 75% first-shot, so 1 to 3 paced shots exceed 98%. uid=9899(vmdird) execution confirmed on the wire.

The wide-blind DoS remains the degenerate, mis-tuned case; the correct exploit simply does not fire out-of-region. The lesson is not "I was wrong", it is that the same primitive can be a DoS or an RCE depending entirely on one modelling assumption, and rigorous experiments are only as good as the assumption they encode.

The main caveat: the RCE reliability numbers above are measured against freshly-restarted lab appliances. The build-constant is recipe-relative and ASLR-invariant (a strong argument that it generalises), but a continuously-loaded production appliance's baseline arena state is a variable that was not tested and which could shift the recipe's displacement or first-shot rate.

7. The safe reset: turning a liability into a tool

A subtle engineering detail makes the PoC dependable. PoC means proof of concept, a demonstration that the attack works. The build-constant displacement is only valid against a fresh arena. Hammer one target and server-side CLOSE-WAIT groom buildup slowly drifts the arena, dropping the hit rate. CLOSE-WAIT is a connection state where one side has closed but the other has not finished; the leftover connections pile up and change the memory layout. The fix is counter-intuitive: deliberately crash the service to reset it.

An out-of-region relative write faults vmdird; the Likewise supervisor (lwsmd) auto-restarts a fresh instance in about 1.5 to 3 seconds, in which lower = 0x820 is valid again. A supervisor is a small program whose job is to keep another program running. The critical constraint, learned the hard way, is that this must fire exactly once:

Text
CRITICAL: never re-fire. lwsmd auto-restarts vmdir in ~1.5-3s, so a re-fire would crash the restarted instance and the 2nd consecutive crash trips lwsmd's autorestart throttle → hard stop → and the service stays dead even though the caller only asked for one reset.
  • CRITICAL: never re-fire. is the warning: do not send the crashing shot a second time.
  • lwsmd auto-restarts vmdir in ~1.5-3s explains why: the supervisor brings the service back quickly.
  • a re-fire would crash the restarted instance means the second shot would hit the fresh process and kill it too.
  • the 2nd consecutive crash trips lwsmd's autorestart throttle → hard stop means the supervisor has a safety limit: two crashes in a row and it gives up restarting.
  • and the service stays dead even though the caller only asked for one reset is the consequence: the attacker accidentally causes a lasting outage.

So the exploit's own crash primitive doubles as a heap-state reset that restores exploitation reliability, but respecting the supervisor's throttle keeps it a single clean reset rather than a self-inflicted denial of service.

8. Defensive takeaways (the part your blue team wants)

This research is only worth publishing if defenders get more out of it than attackers. A blue team is the group inside an organisation responsible for defending systems. The good news: the failure modes are loud and the mitigations are cheap.

  • The DoS is disk-driven and self-recoverable. Every crash writes an up-to-2 GB core to /storage/core. A core dump is a snapshot of a crashed program's memory saved to disk for debugging. A sustained sweep fills the partition, at which point a crash can no longer restart cleanly and the service enters a crash-loop meltdown with all ports down. A partition is a section of a disk. This is partition exhaustion, not persistent data corruption: clear the cores and the service restarts. Mitigation: bound or rotate core dumps for the RPC daemons, or give them a dedicated size-capped core partition.
  • High-fidelity detection: rapid growth of /storage/core/core.{vmdird,vmcad,vmafdd}.* and repeated watchdog/lwsmd respawns in /var/log/vmware/<daemon>/ are near-unambiguous indicators of exploitation attempts against these endpoints. Alert on both. A watchdog is a monitor that restarts a service when it stops responding; a respawn is a restart; a log is a file where a program records events.
  • A positive hardening observation: on this build, liblber NUL-terminates decoded LDAP values, which closes the classic errorMessage-%s-over-read leak class on port 389. liblber is the library that encodes and decodes LDAP, the protocol directory services use. NUL-terminating means ending a string with a zero byte so functions know where it stops. An over-read is reading past the end of a buffer. Worth preserving in future builds. Three separate external leak surfaces were confirmed negative precisely because of details like this.
  • Patch, obviously. The U3p to U3t diff isolates the Class B fix to an integer-overflow guard in rpc_ss_ndr_allocation_size (the dimension-product), lower-bound sign checks in contiguous_elt, and bounds in u_var_or_open_arr, about 20 of 1485 functions changed. A diff is a side-by-side comparison of two versions of code. That diff corroborates the array-conformance root cause.

Segmenting management-plane RPC (2012/2014/2020) away from anything an attacker can reach remains the single highest-value control: these are unauthenticated endpoints doing memory-unsafe parsing. Segmenting means putting them on a separate network so outsiders cannot reach them.

9. Methodology recap

If you are reproducing work like this, the order that worked best:

  1. Establish lineage. Trace the binary to its open-source ancestor (Likewise Open / OSF DCE 1.1) and read the real C. A binary is a compiled program.
  2. Reachability first. Confirm every service accepts a BIND with the right interface UUID before touching bugs. A UUID is a long unique identifier; an interface UUID names which service you want.
  3. Static RE, source and runtime. Map Ghidra offsets to source line numbers, then confirm against a live GDB back trace. When the return address matches to the byte, you know your model is right. A back trace is the list of function calls that led to the current point.
  4. Chase primitives, then reliability, separately. "Can I write?" and "can I reliably write in this spot with no oracle?" are different questions with different experiments.
  5. Run adversarial experiments against your own conclusions. The snapshot-revert control and the crash-light retests are what caught the outlier "successes."
  6. Model assumptions are important. The entire DoS to RCE flip was one assumption (D0 is per-instance) being replaced by a better one (D0 is a build-constant). Test and confirm your assumptions.
  7. Publish the corrections. The reversal is more useful to the next researcher than the polished result.

10. Closing

CVE-2024-38812 is a small bug, one missing bound on one wire field, with a large blast radius. Reversing it end to end surfaced three things the public record did not have: that the same function is an arbitrary read as well as a write (a self-contained ASLR defeat), that the "per-instance random" exploitation displacement is actually a build-constant derivable offline, and that the unauthenticated impact flips between DoS and RCE on a single modelling assumption. The defensive corollary is encouraging: the noisiest attacker behaviours are exactly the ones that are cheapest to detect and bound.

Patch to U3t. Watch your core partition. And when your careful experiment tells you something is impossible, check whether it is the bug that is the limit or your assumption about it.

Glossary

  • API: a defined way for one program to ask another to do something, like a menu of allowed requests.
  • ASLR (address space layout randomisation): an operating-system defence that shuffles where programs and data sit in memory each run, so attackers cannot hardcode addresses.
  • Arena: a region of heap memory shared by a group of threads.
  • Array: an ordered list of items stored together.
  • ASLR-agnostic: working without needing to know the randomised addresses.
  • Auth trailer: extra authentication data appended to a message.
  • Back trace: the list of function calls that led to the current point in a program.
  • BIND: the opening handshake in DCE/RPC where the client names the service it wants.
  • Binary: a compiled program.
  • Blue team: the defenders inside an organisation.
  • Bounds check: a test that data fits inside its buffer.
  • Buffer: a fixed-size area of memory used to hold data temporarily.
  • Build-constant: a value that is fixed for a given build of the software, rather than random per machine.
  • Callback: a function the program will call later, often when something finishes.
  • Certificate authority: a service that issues digital certificates, the electronic ID cards computers use to prove identity.
  • Chunk: a unit of heap memory.
  • CLOSE-WAIT: a connection state where one side has closed and the other has not finished.
  • Co-location: two objects being in the same memory region.
  • Conformant varying array: an array whose message declares both a maximum size and the slice actually present.
  • Control (experiment): a comparison run designed to rule out mistakes.
  • Core dump: a snapshot of a crashed program's memory saved to disk.
  • CVE: a public catalogue number for a known security flaw.
  • CVSS: a 0 to 10 score for how severe a flaw is.
  • Daemon: a background program that runs without a user interface.
  • DCE/RPC: a protocol for one computer to call functions on another.
  • Decompilation: turning a compiled program back into readable code.
  • Denial of service (DoS): making a service unavailable to its users.
  • Diff: a side-by-side comparison of two versions of code.
  • Directory service: a database of users and objects, like a phone book.
  • Displacement: the distance from a starting point to a target in memory.
  • ELF header: the fixed first part of a Linux program file, starting with the bytes 7f 45 4c 46.
  • ESXi: VMware's software that runs virtual machines on a physical host.
  • Exfiltrate: to send data out to an attacker.
  • Fork: a copy of a software project that then develops separately.
  • Fragment: a piece of a larger message.
  • Fragbuf: a buffer holding one fragment of a message.
  • Ghidra: a free tool that decompiles programs.
  • glibc: the standard C library on Linux.
  • GOT (global offset table): the program's address book for functions borrowed from shared libraries.
  • Grooming: deliberately arranging memory so a later overflow lands on something useful.
  • Header: the fixed first part of a message or file that describes what follows.
  • Heap: the general-purpose pool of memory a program uses for data created while running.
  • Heap overflow: writing more data into a heap buffer than it can hold, spilling into neighbouring memory.
  • Info-leak: a program revealing memory it should not.
  • Integer underflow: a subtraction that goes below zero and wraps around to a huge number.
  • Interface UUID: a long unique identifier naming a service.
  • Interpreter (NDR): the code that packs and unpacks function arguments.
  • LDAP: the protocol directory services use to store and query users and objects.
  • libdcerpc.so: the shared library implementing DCE/RPC in vCenter.
  • liblber: the library that encodes and decodes LDAP.
  • Load base: the address where a library was placed in memory.
  • malloc: the standard C function that reserves memory.
  • Marshal: to pack function arguments into bytes for sending.
  • memcpy: the standard C function that copies bytes from one place to another.
  • Mitigation: a change that reduces the impact of an attack.
  • Module base: the load address of a library or module.
  • NDR: the rulebook for packing function arguments into bytes.
  • Non-PIE (ET_EXEC): a program always loaded at the same address, so its internal addresses do not change.
  • Nonce: a one-time random value.
  • NTLMSSP: a Microsoft authentication protocol.
  • Opnum: the operation number identifying which function is being called.
  • Oracle: any signal from a target that tells an attacker whether a guess was right.
  • Outlier: a result that does not fit the pattern and is usually a fluke.
  • Over-read: reading past the end of a buffer.
  • Partition: a section of a disk.
  • PDU: a packet of data in DCE/RPC.
  • PLT (procedure linkage table): the trampoline a program uses to jump to a borrowed function.
  • Pointer: a memory address stored as a value.
  • PoC (proof of concept): a demonstration that an attack works.
  • Port: a numbered door on a computer where a service listens.
  • Pre-auth (pre-authentication): reachable before any login.
  • Primitive: a basic capability gained, such as writing a few bytes somewhere.
  • Protocol: a set of rules for how computers talk.
  • RCE (remote code execution): making a target computer run your code.
  • Recipe: a fixed sequence of setup steps.
  • Register: a tiny, very fast storage slot inside the processor.
  • Relative write: a write whose destination is an offset from a known starting point rather than an absolute address.
  • Respawn: a restart of a service.
  • Reversing: working backwards from a finished program to understand how it works.
  • RPC (remote procedure call): asking another computer to run a function as if it were local.
  • Salvo: one round of shots in an automated attack.
  • Segmentation: putting services on a separate network so outsiders cannot reach them.
  • Shared library: a reusable bundle of code that several programs load.
  • Slack: unused space at the end of a buffer.
  • Stub: the packed form of a function call's arguments.
  • Supervisor: a small program whose job is to keep another program running.
  • system(): the standard C function that runs a shell command.
  • Thread: one line of execution inside a program.
  • uint32: a whole number from 0 to about 4 billion.
  • Unmarshal: to unpack function arguments from bytes.
  • Unmapped memory: memory that no program has been assigned, so touching it crashes.
  • UUID: a long unique identifier.
  • vCenter Server: VMware's control panel for managing an estate of ESXi hosts and virtual machines.
  • Virtual machine: a pretend computer running inside a real one.
  • vmafdd, vmcad, vmdird: the vCenter daemons for authentication, certificate authority and directory service.
  • VMSA: the identifier of a VMware security advisory.
  • Watchdog: a monitor that restarts a service when it stops responding.
  • wchar_t: a wide character type, stored in more than one byte.
  • Wire: the network, as in data sent "on the wire".
  • XMM register: a processor register used for bulk data moves.

More by Anthony Cihan

View all

2 more disclosed reports, best first.

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.