Samardzija (7-5), who has been the subject of trade rumors with the July 31 deadline approaching, held the Indians to four hits, struck out three and didn’t walk a batter.
Cabrera hit a leadoff homer in the fourth off right-hander Trevor Bauer to break a scoreless tie. He added a two-run shot off left-hander Kyle Crockett in the seventh. Cabrera has homered from both sides of the plate twice in his career, the first time on July 28, 2014, against Boston.
Alexei Ramirez hit a three-run homer in the fourth while Adam Eaton homered to lead off the fifth and Chicago snapped a four-game losing streak.