Josh Huestis went 8-of-12 from the field, finishing with 22 points, and Anthony Brown scored 18 for the Cardinal (18-8, 9-5 Pac-12), which corralled a fifth win in six games.
Stanford fell to the Bruins 91-74 last month.
Zach LaVine and Norman Powell each scored 14 points for UCLA (21-6, 10-4), which had its four-game winning streak snapped.
Disney's 'Jessie' to feature network's first engagement
Rosie O'Donnell unveils nearly 50-pound weight loss