This reminds me of a thing from a few years ago, my vague memory is that it was by Travis Goodspeed.
A smart TV would accept a firmware update from a file on a standard USB stick.
The TV reads the file start to finish to check the digital signature then reads it again to update.
A device that is pretending to be a USB storage device can send a manufacturer firmware file the first time then send your unofficial firmware after.