Running open-source firmware is basically necessary to have any chance against all these attacks, because manufacturers simply won't do the work.
There really really needs to be some regulation on this, internet of things devices as well. Give a defined minimum software update lifespan on the box at time of purchase and require that it be at least 3 years from the date of sale, for example.