The proper defense is to not use passwords. It's 2019, nobody should be using passwords on SSH-enabled shell accounts.
Heck, I use secure tokens for authentication so this memory encryption hack is useless to me--even I don't know what my private key(s) are, nor does OpenSSH or any other software on my computers. But I appreciate that we're a long way from ubiquitous hardware-based authentication.