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.
Pregnant Mila Kunis wins 'Best Villain' at MTV Movie Awards
Charlize Theron not engaged to Sean Penn 'yet'