Samsung Electronics' decision to return part of its enormous cash hoard to shareholders will buy the struggling company time with investors as it searches for new growth drivers, say analysts.

The company's stock rallied over 7 percent on Thursday as investors cheered the $2 billion share buyback plan, its first since 2007 and second-largest ever.