It seems strange to me, 2 years is to much. But at Ferrai just because you have a contract doesnt mean you will be driving. They paid Kimi off so they might pay Massa off too.
Or maybe they want to go back to the Schumi era where they had a clear Nr 1 & 2. Massa might be the new Rubens or Irvine where he just scores points and Alonso fights for the championship. I would find that strange as both Mclaren & Red Bull have 2 drivers that are all fighting each other for the championship, which earns the team more points. I think Massa will bounce back to a higher level than he is currently at but the title fight this year is extreme and I can't see him beating either Mclaren or Red Bull anytime soon.