BOSTON -- It's a rare thing for a Red Sox fan to cheer for a member of the New York Yankees.

Aaron Judge caused some of Boston's faithful to make an exception on his latest visit to Fenway Park

Judge hit his major league-leading 56th and 57th home runs, Gleyber Torres had a go-ahead three-run double in the 10th inning and the Yankees held on to beat the Red Sox 7-6 on Tuesday night.

Playing in New York's 142nd game, the Yankees slugger's second drive of the night brought fans from both sides of the rivalry to their feet in applause as he moved four from tying the American League home run record Roger Maris set with the Yankees in 1961.

"[Red Sox fans] were wearing me out on deck, I don't know if they were cheering or not," Judge said. "They were wearing me out. But nah, it's all of baseball fans. Just fans all over. Red Sox, Yankees -- it doesn't matter. They came here to see a good game and to see a show. Both teams I think put on a good show for them."

After going homerless in five games, Judge had a pair of of tying solo homers, off Nick Pivetta in the sixth and Garrett Whitlock in the eighth.

"I'm out of adjectives," Yankees manager Aaron Boone said. "Just really impressive what he did."

Judge has 10 multi-homer games this season, one shy of the AL record Hank Greenberg set in 1938, and 26 in his career. Judge's three hits raised his average to .310, and he leads the major leagues in home runs and with 123 RBIs. Judge has a 1.105 OPS this season and 32 RBIs in his past 38 games.

Philadelphia's Kyle Schwarber is second in the major leagues with 37 homers, making this the first time a player finished a day with a 20-homer lead since the final day of the 1928 season, when Babe Ruth was 23 ahead of Jim Bottomley and Hack Wilson, according to the Elias Sports Bureau.

New York, which came from behind three times, reopened a six-game AL East lead, its largest since Sept. 1.

Information from the Associated Press was used in this report.