1 of 8
Mark J. Terrill, Associated Press
Arizona State quarterback Mike Bercovici gestures to fans after they scored a touchdown during the first half of an NCAA college football game against UCLA, Saturday, Oct. 3, 2015, in Pasadena, Calif.

PASADENA, Calif. — Mike Bercovici passed for 273 yards and two touchdowns and ran for another score, and Arizona State got its season back on track with a 38-23 victory over No. 7 UCLA on Saturday night.

Tim White and D.J. Foster caught scoring passes for the Sun Devils (3-2, 1-1 Pac-12), who responded to their dire situation after two September losses with a solid effort in their second straight win at the Rose Bowl. Arizona State built a 29-10 lead heading into the fourth quarter and then hung on.

Thomas Duarte caught his second touchdown pass from Josh Rosen with 9:19 to play, trimming the Sun Devils' lead to 29-23. But after UCLA (4-1, 1-1) got stranded inside its 1 by Matt Haack's punt, the Bruins snapped the ball out of their own end zone with 4:16 left for their second safety of the night.