Global banking giant HSBC said Monday it had agreed to buy a majority stake in South Korea 's Korea Exchange Bank from US private equity fund Lone Star for about 6.3 billion US dollars ( 4.6 billion euros ) in cash .