SOES EtherCAT slave wave (21 GHSAs): wire-declared lengths bound every copy¶
Wave in one line: SOES (Simple Open EtherCAT Slave) up to v3.2.0 trusts every master-supplied length, count, and command byte in CoE/FoE/EoE mailbox frames with no authentication, no per-command state guard, and no clamp against the physical buffer, so any device on the EtherCAT segment gets slave memory corruption, a mailbox over-read the master can read back, and single-frame crashes; fixed in 3.2.1.
Source: GitHub Security Advisories published 2026-11-21T15:30Z, a coordinated 21-advisory wave (CVE-2026-129794 through CVE-2026-129814) mirroring the vendor advisory RRTL-261119-01 (RT-Labs Security Team, 2026-11-19, includes CSAF 2.1 JSON). All GHSA package/version fields are empty, so band confirmation comes from the vendor advisory: SOES prior to 3.2.1. All legs are triggerable by a malicious or compromised EtherCAT master on the same network segment, which in EtherCAT means anyone who can plug in or ARP on the process network: the master role is unauthenticated by protocol design.
Why this wave matters to an operator¶
This is the cleanest published anatomy of an unauthenticated protocol parser in OT firmware that the wiki has: every leg is one of four reusable axes, each with exact fix-shape evidence from the advisory's Technical Details. Use it as the battery template for any fieldbus stack (EtherCAT, EtherNet/IP, PROFINET, OPC-UA embedded) where the peer is trusted-by-presence.
- Declared-length-vs-physical-buffer is two checks, stacks ship one. The three highest-impact legs all pass a bounds check against the wrong bound: EoE reassembly checks nothing (frame-size field becomes the memcpy bound, 2016 bytes into a roughly 592-byte lwIP sample buffer); FoE DATA checks remaining file capacity but not mailbox size, so the over-read bytes are written into the file the master then reads back (mailbox memory disclosure); CoE normal download compares declared SDO size against an unsigned subtraction that itself wraps. When auditing a parser, list every length a frame carries and every bound each handler compares it against, then find the missing second bound.
- Command dispatch without a session-state guard. DOWNLOADSEGREQ was dispatched on the command byte alone; the sibling UPLOADSEGREQ path checked
ESCvar.segmentedfirst. Asymmetric guards between upload/download (or read/write, get/set) dispatch legs are a grep-shaped bug class. A fresh slave with zero-initialized state turns the unsolicited segment write into a NULL/stale-pointer write. - Config-plane writes into compile-time data-plane buffers. The master can SDO-write PDO mapping bit lengths and subindex-0 counts;
sizeOfPDOsummed them with no clamp againstMAX_RXPDO_SIZE/MAX_TXPDO_SIZE, so pack/unpack wrote pastrxpdo[]/txpdo[]on every process-data cycle after PREOP to SAFEOP. Configuration writes that select or size fixed buffers are a data-plane boundary: validate at write time and again at use time. - Reachable-before-init is an attack window. FoE/EoE handlers ran whenever MBXrun was set, even before the application called
FOE_config/EOE_config, so a master racing the boot sequence reached NULL config/callback pointers. Any compiled-in-but-not-yet-configured protocol handler is pre-auth surface with a timing window.
Advisory table (all 21 legs)¶
| GHSA | CVE | Sev. | Boundary |
|---|---|---|---|
| GHSA-7mq7-wvx7-g6gv | CVE-2026-129794 | high 8.8 | EoE fragment reassembly: 6-bit FRAME_OFFSET shifted left 5 becomes the memcpy bound (max 2016) with no clamp to the app-sized buffer (lwIP sample about 592 bytes, roughly 1424 bytes of headroom). Heap OOB write from any master when EoE enabled. |
| GHSA-qwfm-mxc8-qf5p | CVE-2026-129796 | high 8.8 | CoE SDO download on flexible-length objects: master size larger than actsize wraps the zero-padding memset to near SIZE_MAX (billions of bytes), and the first-frame copy overruns small objects with up to about 116 master bytes. |
| GHSA-4259-xrx6-xmr3 | CVE-2026-129797 | high 8.8 | DOWNLOADSEGREQ dispatched on command byte alone (upload path had the ESCvar.segmented guard, download did not): unsolicited segment writes through NULL/stale ESCvar.data. |
| GHSA-79w2-gjjr-w6wg | CVE-2026-129798 | high 8.8 | Segmented download advances the write pointer per segment with no cumulative total check; fragsleft never initialized on the opening frame, so non-last segments walk the pointer past object or staging buffers. Fix adds a per-segment fragsleft + size <= max_capacity check and separate fragment counters so an interleaved request cannot reset the limit. |
| GHSA-c9ww-6738-wjqg | CVE-2026-129811 | high 8.8 | Master SDO-writes PDO mapping bit lengths; sizeOfPDO never checked the sum against process-data buffer sizes, so pack/unpack overrun rxpdo[]/txpdo[] every PD cycle after PREOP to SAFEOP. |
| GHSA-j966-xhxr-3mv5 | CVE-2026-129801 | high 7.1 | FoE DATA length checked against remaining file space, not mailbox size: declare 500, send 128, and the over-read of adjacent memory lands in the file the master reads back. Adjacent-memory disclosure primitive. |
| GHSA-9wpr-rg64-m8vr | CVE-2026-129795 | medium | EoE last-fragment TIME_APPEND subtracts 4 from rxframeoffset unguarded: a LAST+TIME fragment under 4 bytes wraps to 0xFFFFFFFC and hands the TCP/IP stack a 4 GB length. Single frame. |
| GHSA-4r5w-m938-wm9p | CVE-2026-129799 | medium | SDO request for index 0xFFFF matches the object-list terminator sentinel (NULL objdesc) instead of not-found; every caller dereferences it. One-frame slave crash. Sentinel-in-request-space rule. |
| GHSA-ghr5-2g6h-jjrv | CVE-2026-129800 | medium | Dynamic-PDO builds ship 0x1C12:00/0x1C13:00 subindex-0 counts writable via SDO with no clamp; write 0xFF and sizeOfPDO overreads descriptor arrays on the next SAFEOP transition. |
| GHSA-fv59-8p44-5jc7 | CVE-2026-129807 | medium | FOE_fopen accepted a WRQ for a read-only file (write_function NULL); first DATA frame calls through NULL. Capability check missing on open, enforced nowhere else. |
| GHSA-v5c9-c2w3-585h | CVE-2026-129803 | medium | Gate accepts mbxheader.length 8 or 9; the segmented-branch decision size > length - 10 wraps to 0xFFFFFFF6, so the declared size stays unclamped and copy2mbx reads past the frame into the object buffer. Adjacent mailbox memory written into object data, readable via SDO upload. |
| GHSA-3fqv-p3h9-8fww | CVE-2026-129804 | medium | FoE filename length stored as uint8_t: when length - ESC_FOEHSIZE is a multiple of 256 the name length becomes 0 and strncmp(...,0) always matches, so the first registered password-0 file opens without naming it (shipped demo apps register files with filepass = 0). Truncation-to-zero comparison primitive. |
| GHSA-v752-pcmp-gwwv | CVE-2026-129805 | medium | SDO download checked write access but not data != NULL: writable dataless entries (constant in value field) get a NULL-pointer write. Upload path had the equivalent guard, download did not (again the sibling asymmetry). |
| GHSA-qjr3-c28p-jpjc | CVE-2026-129806 | medium | SDO upload normal-response path passes NULL data straight to the object handler and response copy for dataless entries; expedited path handled it correctly. |
| GHSA-h239-263q-7xhv | CVE-2026-129808 | medium | EoE recv/tx call handle_recv_buffer/fetch_send_buffer without checking the documented-optional callbacks are set: omit one and the first frame (or every poll) calls through NULL. |
| GHSA-r4h2-22rw-2frr | CVE-2026-129809 | medium | Any FoE frame arriving after MBXrun but before FOE_config dereferences NULL foe_cfg/fbuffer. Boot-window race leg. |
| GHSA-j483-9xmh-j2h7 | CVE-2026-129810 | medium | Same boot window for EoE before EOE_config, plus ESC_eoeprocess_tx ran unconditionally whenever MBXrun was set. |
| GHSA-55pf-rwf4-2xhj | CVE-2026-129812 | medium | Mapping a dataless (NULL data) object into a PDO stores the NULL in the SMmap array; pack/unpack dereferences it every process-data cycle. Master-triggered persistent-crash primitive. |
| GHSA-2954-8px3-mvqf | CVE-2026-129813 | medium | Complete-access download iterates all subindices writing into each writable entry without checking for NULL data on dataless subindices. |
| GHSA-97xj-chr5-h2r8 | CVE-2026-129802 | medium | EOE_set_ip reads all flag-indicated network parameter fields before the single end-of-function bounds check fires: reads run past the payload into adjacent MBX[] memory. Check-after-read ordering leg. |
| GHSA-9h7w-g852-2gxj | CVE-2026-129814 | low | SDO Info Get Object/Entry Description responses copy descriptor strings without the same size discipline. |
Operator workflow (authorized OT labs and scoped process networks only)¶
- Fingerprint first. SOES-based slaves are pervasive in EtherCAT field devices (RT-Labs ships SOES with ET1100 and LAN9252 boards; many vendors fork it). Version presence is cheap to establish passively from mailbox behavior; only attempt frame-level checks in a lab or explicitly scoped segment with the asset owner's approval.
- Build the declared-length inventory per protocol. For each mailbox protocol (CoE, FoE, EoE), enumerate every wire-supplied length/count field:
mbxheader.length, SDO declared size, segment size, fragment FRAME_OFFSET, FoE filename length. For each, ask the three questions this wave answers: is it clamped to the physical buffer, is the clamp itself wrap-safe (watchfield - CONSTANTunsigned subtractions), and does a truncating cast widen or narrow it (the uint8_t filename mod-256 leg). - Fuzz command dispatch, not just payloads. Replay every command byte (DOWNLOADSEGREQ, UPLOADSEGREQ, INFO variants, FoE WRQ/RRQ, EoE Set-IP) in every state: fresh boot before config, PREOP, SAFEOP, OP, out-of-session. The highest-severity leg here was a bare command byte with no state check, not a malformed payload.
- Differential sibling audit. Where a stack guards the upload/read direction, diff the download/write handler for the missing check; where expedited is guarded, diff normal-response; where
fopenchecks password, diff the capability check. Five of the 21 legs are exactly this asymmetry. - Trigger-state pairing. Bugs whose damage fires on a later event (mapping validated on PREOP to SAFEOP, overreads on the next cycle, crash on first DATA frame after open) need the two-step sequence in the harness: write the descriptor, then transition, then run process data. Single-frame fuzzers miss the whole config-plane class.
- Evidence discipline. Over-read legs (129801, 129803) are disclosure primitives; in authorized tests capture only non-sensitive adjacent memory patterns, never credentials or safety-relevant process data, and never run frame-fuzzing against live production slaves: several legs are single-frame slave crashes, which is plant downtime.
Reporting heuristic¶
The vendor advisory's per-leg CVSS vectors all carry AV:A (adjacent) with PR:N, which platforms under-score for OT: on a flat process VLAN, "adjacent" is unsegmented network position, and three legs are C/I/A High. When reporting EtherCAT/embedded-fieldbus bugs, spell out whether the segment is actually segmented; the same vector means "anyone on the plant LAN" in most deployments. The four-axis anatomy above (missing second bound, missing dispatch guard, config-plane into fixed buffer, reachable-before-init) is worth including verbatim as impact analysis, because it generalizes beyond this stack.
Related pages¶
- Sept 16 OT server-response-trust and hardcoded update-key page (openPDC/openHistorian unauthenticated publisher surfaces)
- Advantech ADAM-3600 proprietary-protocol unauthenticated primitive ladder (same "protocol peer is the trust boundary" framing)
- Siemens OT patch-day wave (OT engineering surfaces)
- CGM CliniNet interface-engine listeners page (root-privileged parsers assuming trusted peers)