Up to 9.4 million people have been affected by a major data hack, Cathay Pacific says.