I’d imagine it’d be incredibly unlikely that critical software systems in jets or tanks would be internet-connected.
From past experience with military-spec software development, it’s usually highly redundant and isolated. The operating systems are often real-time Linux-based ones (at least the ones I was exposed to).
If there’s Windows running there somewhere, it’s unlikely it’s in a critical system.