The home side had to come from five points down during the fourth quarter to force the extra spell, before Dirk Nowitzki led the Mavericks on a game-winning run, scoring seven of his 32 points in overtime.
The home side set a franchise record in the third quarter, outscoring the Knicks 51-31 to extend their lead further, ensuring back-to-back defeats for the visitors.
However, Toronto went on to miss a string of shots, allowing the Cavaliers to regain the lead late on, ending a five-game home losing streak.
Tobias Harris and Nikola Vucevic helped the Magic surge ahead in the second quarter, giving them a big enough lead to survive a late fightback from the Blazers, who slipped to their third defeat in a row.
Results in full: Toronto Raptors 100-102 Cleveland Cavaliers, Portland Trail Blazers 85-95 Orlando Magic, Oklahoma City Thunder 119-128 Dallas Mavericks, New York Knicks 96-127 Los Angeles Lakers