A patch has been issued for a serious flaw in Windows, exploited by hackers.