MONTREAL -- Alex Galchenyuk scored twice, including the overtime winner, as the Montreal Canadiens edged the Dallas Stars 4-3 on Tuesday night, snapping their four-game losing skid.

Max Pacioretty and Phillip Danault scored in regulation for Montreal (31-30-6). Ben Scrivens made 30 saves.

Cody Eakin, Jason Spezza and Ales Hemsky had goals for the first-place Stars (40-20-8). Kari Lehtonen stopped 24-of-28 shots in net.

The 13th-place Canadiens are 6-0-1 in their last seven home games.

Galchenyuk one-timed home a pass from Andrei Markov from the faceoff circle at 1:59 of overtime for the winner.

Scrivens was shaky early on, making easy saves look challenging from the get-go.

The Stars needed just 2:58 to score their first, with Eakin redirecting a pass from Jason Demers between Scrivens' pads.

Montreal got the equalizer at 14:20 when Markov's point shot went off Pacioretty's right skate and in -- the Canadiens captain's team-leading 24th goal of the season.

With Pacioretty in the box for holding to start the second, Spezza beat Scrivens top shelf 17 seconds into the period with a big blast from just outside the faceoff circle. Spezza has a goal in each of his last four games.

The home side responded 36 seconds later, with Galchenyuk scoring his eighth goal in his last seven games.

Galchenyuk, who centered Montreal's first line, made no mistake from all alone in the slot, but it was a clever play from Sven Andrighetto that led to the goal. Andrighetto made a nifty, one-handed pass from behind the net as he lay on his stomach.

Galchenyuk's nine goals, with the overtime winner, are the most in the league since Feb. 24.

Danault gave Montreal a 3-2 lead at 3:37, cashing in a big rebound off the end boards for his first in a Canadiens uniform.

The Habs scored three goals on their first 11 shots of the game.

Hemsky made it 3-3 in the second period's final minute, beating Scrivens easily with a wrap-around.

The Canadiens announced Brendan Gallagher, who sustained a lower-body injury in Montreal's last outing, will miss two to three weeks of play.

Notes: Lars Eller did not play due to a lower-body injury. Rookie Lucas Lessio took his spot in the lineup. ... Patrick Sharp and Jordie Benn (lower-body injuries) were sidelined for the Stars. ... Prior to puck drop, goalie Mike Condon was awarded the Molson Cup for January and February.