It's not, but Linux is immune to Wannacry and a lot of the other _actual_ garbage that's out there because they don't target Linux desktop users. It would probably be pretty trivial to come up with a Wannacry-like bit of malware that was equally (or more?) effective on a Linux desktop, but the market for doing so isn't very lucrative.