DURHAM, N.C. -- — Freshman Jaemyn Brakefield scored the go-ahead basket on a reverse layup with 1:58 left and Duke came up with a final-possession stop and upset No. 7 Virginia 66-65 on Saturday night.

Matthew Hurt scored 22 points to lead the Blue Devils (10-8, 8-6 Atlantic Coast Conference), who claimed a much-needed third straight win to improve their uncertain chances of making the NCAA Tournament.

"It seemed like everybody contributed to making a big play, big plays down (at) the end," Duke coach Mike Krzyzewski said.

Brakefield's scoring drive, while drawing a foul on Jay Huff, finally got Duke a slim lead. Freshman DJ Steward had a chance to increase the margin, but missed the front end of a 1-and-1 free-throw opportunity with 9.6 seconds left.

Huff got the rebound and got the ball to Kihei Clark, who bobbled the dribble at the other end to lose time and had to force up an off-balance 3-point attempt over Hurt to beat the clock. The ball was well short, with Huff catching the airball and stuffing it in well past the final horn.

"The last play, I mean, they missed that free throw. It was broken and we were like, ‘If they miss it, attack. Get to the rim. We're in the bonus,'" Virginia coach Tony Bennett said.

"And I was hoping we could get into the lane and get one up and rebound or flip it to Sam (Hauser) or someone trailing. ... They just were skin-tight (defensively)."

Huff finished with 20 points and 12 rebounds for the Cavaliers (15-5, 11-3), who followed a blowout loss at No. 16 Florida State with a second loss this week in yet another close matchup with the Blue Devils.

It was the fifth time in seven meetings between the teams that the game was decided by one or two points.

BIG PICTURE:

Virginia: The Cavaliers were coming off Monday's 81-60 loss to the Seminoles, marking their most lopsided ACC defeat in four years. They shot 60% in the first half, but just 41% after the break on Saturday, going the final 3:48 without a basket to finish with back-to-back losses for the first time this season.

Duke: The Blue Devils are at risk of missing the NCAA Tournament for the first time since 1995. They had lost six of eight at one point, but followed with two straight road wins by big margins against instate foes North Carolina State and Wake Forest after an emphasis in practices on improving defense. They added another behind Hurt's third straight game of at least 22 points and a boost from Brakefield (11 points, five rebounds, four blocks).

"This was a big-time win for us and we needed this one badly," Hurt said.

UP NEXT

Virginia: The Cavaliers host North Carolina State on Wednesday.

Duke: The Blue Devils host Syracuse on Monday.