CHICAGO (AP) For the second straight week, South Florida found a way to erase a double-digit fourth-quarter deficit against a Power Five school.

Blake Barnett threw two touchdown passes in the fourth quarter to Darnell Salomon and South Florida rallied from 12 points down to defeat Illinois 25-19 on Saturday.

Barnett was 23 of 40 for 411 yards passing with two touchdowns and two interceptions, and Jordan Cronkrite ran for 136 yards and a score for the Bulls (3-0).

Trailing 19-7 early in the fourth quarter, Barnett cut the Illinois lead with a 14-yard pass to Salomon to make it 19-14. Two possessions later, Barnett found a leaping Randall St. Felix for a 55-yard catch, which set up a 22-yard field goal from Coby Weiss with 7:47 left. After another South Florida stop, Barnett connected with Salomon from 50 yards to score with 2:24 left to give the Bulls a 25-19 lead.

Last week, the Bulls scored 21 unanswered in the fourth quarter against Georgia Tech.

''It was very similar to last week. We unfortunately put us in this position where we had to do that,'' said Barnett. ''We had to make something happen. Fortunately, like last week it worked out.''

South Florida coach Charlie Strong wasn't thrilled with the way the Bulls began the game.

''You watched the way we played in the first half, never had so many penalties,'' Strong said. ''You look at where we are in penalties. ... But this a lesson we'll learn, and this is a good thing.''

The Illini couldn't score on its final drive thanks to a sack by Tyrone Barber at the South Florida 25 with six seconds left. Freshman quarterback M.J. Rivers II threw the ball out of the end zone as time expired.

Illinois coach Love Smith was impressed with his team despite the loss. Last season, they suffered a 47-23 defeat at the hands of the Bulls.

''We've come a long way. Last year we played South Florida, we weren't really competitive,'' Smith said. ''This year is completely different game. I thought the guys came out strong. ... We had some critical mistakes that allowed them to win the football game.''

Chase McLaughlin converted a field goal from 52 yards to give Illinois a 16-7 halftime lead.

After a shaky first possession, Mike Epstein scored on a 43-yard touchdown run on Illinois' third play from scrimmage. Epstein rushed for 113 yards on 19 carries.

South Florida, which scored 49 points in a win against Georgia Tech last, week, answered with a 75-yard drive. Cronkrite went in from the 3 to tie it at 7, but the Illini defense held for the rest of the half and forced interceptions by Jartavius Martin and Del'Shawn Phillips, which set up field goals by McLaughlin.

McLaughlin connected again from 41 yards, banging off the right upright, capping a 10-play, 53-yard drive late in the third quarter to extend the lead to 19-7.

''I mean it feels good, but in the end, the team didn't win. That's what I'm there to do: help the team win,'' said McLaughlin. ''I have to go out there and do the best that I can.''

Rivers, in his first career start as quarterback, was 20 of 29 for 168 yards passing for Illinois (2-1). Rivers relieved A.J. Bush Jr., who was injured in the win against Western Illinois.

Illinois played a home game at Soldier Field for the fourth time in school history. The game attracted a small crowd with empty seats in the west side upper level.

''When you go on the road, you'll never know what the crowd will be,'' Smith said. ''We didn't play at Memorial Stadium today for a home game. I know that the fans that showed up, we heard them.''

Smith was back in a familiar place, returning to the sideline where he guided the Chicago Bears to a 2006 NFC Championship. Smith was also backed by his former player and newly inducted Hall of Famer Brian Urlacher, who was attendance. It was like old times for Smith, who saw his team thoroughly dominate South Florida on defense and special teams in the first half, a staple of his mid-2000 Bears teams.

THE TAKEAWAY

South Florida: One week after South Florida was sparked by two kickoff returns for touchdowns by Terence Horne, the South Florida special teams were disappointing. Coby Weiss, who was filling in for Jake Vivonetto because of an illness, missed two field-goal attempts. Jake Stone and Trent Schneider also struggled with the punting duties. South Florida won its fifth straight game against a Power Five opponent. Tight end Mitch Wilcox helped the Bulls offense with eight catches for 109 yards.

Illinois: Despite the loss, Illinois looked considerably better than the 47-23 loss last year in Tampa to South Florida. Illinois showed a strong running game and was solid on special teams. However Penn State on Friday will be another major test. ''Games like this are tough for our football team, but we'll learn from it. We have a quick turnaround with Penn State coming into town,'' said Smith.

UP TO SPEED WITH THE PLAYBOOK

Barnett looks very comfortable with the South Florida offense and is making a nice transition from last year's Bulls offensive player of the year Quinton Flowers. ''As you can tell tonight, we were all on the same page on what we were doing, what our assignment was and how to completely execute it,'' said Barnett.

THEY GOT THE MESSAGE

Cronkrite said Strong was pretty clear what they needed to do in the second half after a sluggish first half. ''He just told us, that we need to come out more aggressive and have more sense of urgency about ourselves,'' Cronkrite said. ''Finish drives, we were going down there stalling and not putting the ball in the end zone. He just told us to finish the game.''

UP NEXT

South Florida: Hosts East Carolina on Saturday.

Illinois: Hosts Penn State on Friday night.

Copyright 2018 by AP. Any commercial use or distribution without the express written consent of AP is strictly prohibited.