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.

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.
NVIDIA's Cumulus Linux release notes for 5.18.x carry the row:
nv action boot-next system image otherrun while prometheus-node-exporter
reads the image inventory corrupts/boot/grub/grub.cfgon 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 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.
nv action boot-next system image other updates the/boot/grub/grub.cfg on the runningmenuentry blocks, kernel andgrub.cfg as a script. A truncatedmenuentry, a missing linux line, or a block cut mid-token is a syntaxgrub>.grub-script-check, no hash comparison and no parse assertion in the path.grub>. Days or weeks later, for an upgrade orFour 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 failure is deferred and silent. Compare it with every other Cumulus
availability bug in this corpus:
switchd crash loop is visible in the restart counter and the BGP flaps;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.
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.
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.