LINCOLN, Neb. -Cody Glenn scored from a yard out in the first overtime and No. 21 Nebraska, which blew a 17-point lead, held Kansas out of the end zone for a 39-32 victory on Saturday night.
It was Nebraska's 19th straight win over Kansas in Lincoln since 1968, and payback for last season's 40-15 Jayhawks' victory, which ended a 36-game Cornhuskers' winning streak in the series.
Zac Taylor completed 15-of-33 passes for 395 yards for Nebraska (4-1, 1-0 Big 12) .
Nebraska got the ball first in overtime. Taylor hit Nate Swift along the sideline with a 21-yard pass to the Kansas 1. KU coach Mark Mangino challenged whether the catch was good, but the call was upheld on video review. Glenn then bulled into the end zone.
Kansas (3-2, 0-1) moved to the 9 on its possession, but Adam Barmann overthrew Marcus Henry in the end zone on fourth down, ending the Jayhawks' upset bid.
Barmann was 27-for-54 for 405 yards and three interceptions, and Jon Cornish ran 31 times for 145 yards and a touchdown.
The game started out looking as if it would turn out the way so many games between these teams have here over the years.
The Huskers led 17-0 in the first quarter and 24-7 at halftime. But Nebraska's offense went flat, and Kansas' revved up, scoring twice in the last 6:32 to force overtime.
Barmann, starting his second straight game in place of the injured Kerry Meier, threw a 26-yard touchdown pass to Brian Murph with 46 seconds left to pull the Jayhawks even at 32 and cap an 81-yard drive.
Kansas' tying score came after Taylor's fourth touchdown pass, a 75-yarder to Frantz Hardy with 4:13 left, and 2-point conversion pass put the Huskers up 32-25.
Barmann had given the Jayhawks a one-point lead with 6:32 left with a 1-yard pass to Derek Fine.
Hardy, who had a 78-yard touchdown reception in the second quarter, finished with three catches for 159 yards.
After Barmann drove the Jayhawks 88 yards in 11 plays to put the Jayhawks up 25-24.
After the Huskers got up 24-7, they saw three series end with turnovers and three with punts. Kansas scored nine points off those turnovers to get back into the game.
Kansas lost its conference opener for the eighth time in nine years and dropped to 1-16 in Big 12 road games under Mangino.
Nebraska scored on the game's second play from scrimmage, with Taylor connecting with Terrence Nunn for a 75-yard touchdown.
Barmann was intercepted twice on Kansas' first five plays, both times by safety Andrew Shanle. The second interception set up Nebraska at the KU 6, and Taylor hit Todd Peterson on the next play for a 14-0 lead.
After Jordan Congdon's 21-yard field goal put Nebraska up 17-0 at the end of the first quarter, Kansas got some offense going. Barmann completed passes of 30 and 15 yards to Dexton Fields and a 40-yarder to Fine before Brandon McAnderson scored on a 1-yard run.
Taylor's 78-yard TD pass to Hardy put Nebraska ahead 24-7.
The Jayhawks pulled to two touchdowns at the end of the half on Scott Webb's 31-yard field goal.
Kansas linebacker Eric Washington was taken off the field on a stretcher in the third quarter. He was injured when he tackled running back Marlon Lucky. Television replays showed that his helmet rammed Lucky's shoulder. There was no immediate report on Washington's condition.