Griff Whalen caught four passes for 92 yards and a score for the Cardinal (5-0, 3-0 Pac-12), who have won 13 straight games. Ryan Hewitt caught a pair of TD passes.
Tyler Gaffney carried the ball nine times for 61 yards and a touchdown for Stanford. Stepfan Taylor rushed for 58 yards and a score on 13 carries.
Tyler Hansen connected on 15-of-29 passes for 202 yards, one touchdown and an interception for the Buffaloes (1-5, 0-2), who have lost three in a row since a win over Colorado State on September 17.
Rodney Stewart caught two passes for 79 yards and carried the ball 11 times for 21 yards.