ESPN's Chris Mortensen is reporting that quarterback Matt Leinart and the Arizona Cardinals have agreed to terms on a six-year deal that would be worth as much as $50.8 million.