Some specific Ubiquiti gear uses Cavium SOCs, but certainly not all. The UDM Pro uses an Annapurna Labs SOC and my old EdgeRouter-X was Mediatek.
The SoC manufacturer is irrelevant.
If the USG wants in, it's just a click away in any case.
What's a legal and practical mechanism the US Government could use to do this? In almost any number of clicks, never mind one.