Strikers Kenwyne Jones and David Healy got referee Rob Styles out of jail as Sunderland plunged 10-man Stoke deeper into Barclays Premier League relegation trouble.
Trinidad and Tobago international Jones struck with a 77th-minute header and substitute Healy added a second in injury time to make the official's astonishing first-half blunder irrelevant.
Styles failed to spot substitute Danny Pugh handling Steed Malbranque's 39th-minute header on the line, denying the Black Cats a penalty and sparing the defender a seemingly inevitable sending-off.
But Ricky Sbragia's men, who were cost a derby victory at Newcastle last weekend by a controversial penalty decision, were not to be denied and, after Matthew Etherington had been sent off for kicking out at Danny Collins, they finally made the pressure tell.
The win will have come as a huge relief to Sbragia, who takes his side to Arsenal and Liverpool in their next two games.
By contrast, the Potters left Wearside having failed to make the most of their let-off when substitute Henri Camara smashed a 66th-minute shot against the crossbar, and facing injury and suspension problems after a black day in the north-east.
A return of four points from their previous two games - a home win over Fulham and the draw at St James' Park - sent Sunderland into the game knowing a fifth league win of the season at the Stadium of Light would ease them well clear of the relegation zone.
In a tight first half, they enjoyed the better chances, but Styles' blunder denied them a lead they probably deserved.
Former Black Cat Thomas Sorensen had earlier beaten away a stinging left-foot drive from Jones, while Danny Collins had headed a driven Kieran Richardson cross over the bar and would see Stephen Kelly clear an injury-time effort off the line.
However, the Potters enjoyed an astonishing reprieve with six minutes of the half remaining.
Andy Reid's chipped cross begged Malbranque to head it home at the far post, and he would have succeeded had Pugh, an 18th-minute replacement for Andy Wilkinson, not instinctively thrown out a hand and blocked his effort.
It was a save of which Sorensen might have been proud, but as the ball cannoned back off Malbranque and out of play, the referee awarded only a goal-kick to an incredulous response from virtually everyone else inside the stadium.
Styles should clearly have awarded a penalty and brandished a red card, and he will not have enjoyed watching television replays of the incident which suggested the ball had crossed the line anyway.
Stoke might argue they were due their stroke of good luck after little else went their way before the break.
Indeed, by the time the clock reached the 30-minute mark, manager Tony Pulis had already been forced to introduce all three of his substitutes with Wilkinson, Ryan Shawcross and Ricardo Fuller all succumbing to injury, the latter after an awkward fall left him with an injured shoulder.
They too had their chances with Richard Cresswell firing an acrobatic overhead kick just wide with 11 minutes gone and Camara forcing Marton Fulop into a decent save within seconds of his introduction.
The snow which started to fall at half-time simply added to the wintry atmosphere which greeted Styles and his assistants, as they returned with the home fans among a crowd of 38,350 still smarting.
But with Stoke defending deep and in numbers with great resilience, clear-cut chances were few and far between and the locals were growing increasingly restless.
Abdoulaye Faye just prevented Collins from connecting with a 57th-minute Reid free-kick at the far post, and the pressure was mounting all the time.
Stoke's problems increased substantially seven minutes later when Etherington and Collins tangled off the ball and the midfielder was dismissed for kicking out at the defender, who was booked for his pains.
But the 10 men almost snatched the lead two minutes later when Camara drilled the ball against the crossbar in the midst of a goalmouth scramble following Glenn Whelan's free-kick.
Djibril Cisse and substitute Carlos Edwards sent powerful volleys across goal in quick succession with the Black Cats pushing once again, but the breakthrough finally came with 13 minutes remaining.
Jones climbed high at the back post to meet Reid's cross and send a downward header past Sorensen to ease the tension.
The striker then turned provider at the death for Healy to cement the win and kill off Stoke's resistance.