It doesn't matter if you are running Windows, Ubuntu, Android or the OS of your router, the problem is not in the code it is the hardware that has the vulnerability.
No, your router is not vulnerable to Meltdown/Spectre because it's not running any applications, it's a standalone device.