The Seam Nobody Owns: the first and most fundamental flaw

Site Admin · 4 Dec 2026 · Network Hardware & NOS

The first and most fundamental flaw: SAI is a contract between two parties who do not ship together, and no single party owns its versioning or its test coverage. Every other bug in the series is an invoice for that seam.

SONiC's defining idea is that the ASIC can be hidden behind an interface. Its defining flaw is that the interface is a contract between two parties who do not ship together — and when the contract breaks, the switch is the thing that stops forwarding.

The corpus verdict

The source file names the flaw directly:

The SAI seam is a shared-responsibility gap. SONiC defines the interface; silicon vendors implement it. Bugs at the boundary belong to nobody by default, and each vendor's SAI has its own maturity level. Marvell Prestera support has historically lagged Broadcom's.

That is not a bug in a function; it is a property of the architecture. Everything else follows from it.

The proof: a struct that grew

SAI is not a negotiated protocol. It is a C ABI defined by headers: the vendor compiles a library against one version, SONiC compiles syncd against another, and at runtime both are loaded into the same process and expected to agree on every struct layout.

In October 2026, SAI 1.19.2 added sai_fw_list_t to the sai_attribute_value_t union. The union grew, and sai_attribute_t grew with it — from 48 bytes to 64. A vendor library built against 1.18 still reads the attribute array at a 48-byte stride. The first attribute looks fine. Every attribute after it is read from the wrong offset.

On Marvell Prestera, the result is:

xpSaiSwitch.c:6756 Specified attribute 0 couldn't be set during switch create
xpSaiSwitch.c:8729 Validation of input parameters failed with err -2
xpSaiApiSwitch.c:67 Add switch : Add Failed in SAI
sendApiResponse: api SAI_COMMON_API_CREATE failed in syncd mode: SAI_STATUS_NOT_SUPPORTED

syncd cannot create the switch. orchagent aborts. The container restarts, tries again, and fails again. The switch has power, fans and a login prompt, and no forwarding configuration.

Who owns that bug? SONiC merged the header change. Marvell ships the binary. The operator assembled the image. The failure is at the boundary, and the boundary has no maintainer.

The second face: state that must survive a restart

Warm reboot is the other half. The data plane keeps forwarding while the control plane restarts, under a serialise/restore contract: every subsystem must write its state down and read it back, in order, without asking hardware for resources it already holds.

SONiC has no single state manager. Each orchestration agent implements its own bake(): MirrorOrch for mirror sessions, QosOrch for QoS, AclOrch for ACLs, BufferOrch for buffers. The contract is a set of bilateral agreements with no central test that says all state came back.

The mirror bug is the cleanest example. MirrorOrch checked hardware availability before every create, including creates that were only replays into a temporary view. The check asked the vendor SAI, which counted the live hardware, which already held every restored session. With the pool full, every replay was rejected, and APPLY_VIEW deleted the sessions that the switch had faithfully preserved.

The state was never lost. The software decided it was unwanted.

Why no CVE

None of this is attacker-triggered. No packet grows a struct, no remote input fills the mirror pool, no privilege boundary is crossed. The corpus scores it 6.40, rank 12 of 26, with C=0 and uncovered 6.40, category AVAIL. The C-score is zero because no security control stops a vendor binary being built against the wrong headers, and no scanner sees the seam from outside.

That is why the risk is under-managed. Security programmes triage CVEs; platform defects never enter the risk register. They enter the incident review instead, usually as "the switch came back without mirroring".

The fundamental flaw, stated once

SONiC's correctness depends on contracts between independently versioned components — SONiC and vendor SAI, orchagent and syncd, each orchestration agent and the warm-reboot state machine — and no single party owns the contract, its versioning, or its test coverage.

Disaggregation is the product. The unowned seam is the price. Every bug in this series is an invoice for it.

Next: Part 8 — fixed on master, broken in your branch: the branch-by-branch matrix that decides whether your switch actually has the fix.