Two critical vulnerabilities were corrected by Apple in latest iOS and MacOS updates