It's not the OS, but the applications
The vast majority of recent exploits in both Windows and Linux have all been the result of insecurities in third-party applications. The difference between Windows and Linux is that the exploits quite often compromise Windows itself, allowing privilege escalation and potential major damage, whereas Linux more often limits damage to the current user's profile and privilege level.
Okay, maybe it is the OS...