In order for malware to take advantage of a "Windows bug" would require the buggy Windows program to be running (loaded in memory).

That doesn't mean that Ubuntu malware couldn't destroy your Windows setup though, like with a 'format'-type command.