A bootloader configuration is rewritten while a monitoring agent reads it. The
file ends up truncated or interleaved, the command reports success, and the
switch stops at grub> at the next reboot. There is no lock, no atomic replace,
no post-write check and no fallback entry.

What the release note says

NVIDIA's Cumulus Linux release notes for 5.18.x carry the row:

nv action boot-next system image other run while prometheus-node-exporter
reads the image inventory
corrupts /boot/grub/grub.cfg on the running
partition; switch fails to boot (grub> prompt, needs console).

Affects 5.18.x.

That is the whole public disclosure: a trigger, a file, an outcome and a range.
No CVE, no advisory, no mechanism, no workaround command, no fixed version.

The mechanism, step by step

The first four steps are the documented behaviour plus the only mechanism
consistent with it. The last three are the consequence, and they are not in
doubt.

  1. The writer starts. nv action boot-next system image other updates the
    pending image selection and regenerates /boot/grub/grub.cfg on the running
    partition. The file is small — a header, a few menuentry blocks, kernel and
    initrd paths — which is exactly why a partial write is so damaging: there is
    no slack, and every block matters.
  2. The reader is already inside the file. prometheus-node-exporter, or a
    textfile collector it invokes, reads the image inventory: installed images,
    releases, and the pending boot target. That state lives in the same file or
    the directory that contains it.
  3. The two are not coordinated. There is no advisory lock the writer takes
    and the reader respects, and no documented atomic replace. A reader can
    observe the file after truncation and before the new content is complete; a
    writer can interleave with an open read handle. Either produces a file that
    is not the old config and not the new one.
  4. The result does not parse. GRUB reads grub.cfg as a script. A truncated
    menuentry, a missing linux line, or a block cut mid-token is a syntax
    error. GRUB's behaviour on a syntax error at boot is to stop at grub>.
  5. The command reports success. The action completed; the file was written;
    nothing validated that GRUB could read it. There is no post-write
    grub-script-check, no hash comparison and no parse assertion in the path.
  6. The switch keeps running. The corruption is inert until the next boot.
    Forwarding, BGP, telemetry and management all continue normally. Every health
    check is green.
  7. The next reboot stops at grub>. Days or weeks later, for an upgrade or
    an unrelated maintenance task, the switch goes down and does not come back.

Why it is the fundamental flaw

Four design decisions compose here, and each one is independently defensible:

The write is not atomic. A write to a temporary file followed by rename()
would make the update atomic: a reader sees the old file or the new one, never a
torn one. This is the standard pattern for configuration files, and its absence
is the root defect. The release note does not state the implementation, so this
series labels it as the most likely mechanism rather than a confirmed one.

The reader has no contract. A monitoring agent that reads /boot is behaving
correctly. Nothing in its configuration says "do not read while an image
operation is in progress", because there is no interface that would tell it.

Nothing validates the result. The one control that would have caught this at
the moment of damage costs nothing: grub-script-check /boot/grub/grub.cfg. It
is shipped with the boot stack. It is not in the action's success path.

The bootloader has no fallback. Two images, one selector. The second image
is present and unreachable if the selector is broken. There is no redundant
config and no automatic fallback entry.

The property that makes it worse than a crash

The failure is deferred and silent. Compare it with every other Cumulus
availability bug in this corpus:

  • a switchd crash loop is visible in the restart counter and the BGP flaps;
  • a zebra leak is visible in memory graphs;
  • a stranded VRF port is visible in the forwarding table.

5376220 produces no signal at the time of damage. The operator learns about it

from a failed reboot, on a device that is already unreachable. The evidence that
would explain it — the previous grub.cfg, the action log, the exporter
scrape — is on the partition that will not boot.

The blast radius is a fleet property

Per switch: total, and physically recoverable only.

Per fleet: the race is attempted once per device per image operation. If two
hundred switches receive boot-next in one maintenance window, and node-exporter
runs everywhere, then the race is run two hundred times. A low per-attempt
probability is not a low fleet probability; it is a certainty with a schedule.

This is the bug most likely to take out several devices in one window, and the
one most likely to be misread as a hardware fault — because the first symptom is
"the switch didn't come back", and hardware is the usual explanation for that.

What is documented and what is inferred

Documented: the trigger pair, the corrupted file, the outcome, the console
requirement, and the affected range (5.18.x).

Inferred: the torn-write mechanism, the absence of an atomic replace, the
absence of a lock the reader respects, and the exact path by which the exporter
reads the inventory. All are the standard explanation for this symptom; NVIDIA's
note states only the trigger and the result.

Unknown: whether the corruption is detectable by size or hash before reboot
(likely), whether a bootloader fallback exists that could be enabled, and
whether a later 5.18 build or 5.19 fixes it silently.

Next: Part 8 — one minor train, no fixed version: the 5.18 matrix, the row
that is no longer in the notes, and how to tell what you are running.