Lingard looked to have made sure of the points just after the hour mark, running unopposed through the Middlesbrough half before unleashing a swerving shot into the top corner.

But Middlesbrough were invited back into the game by United's defensive tactics and substitute Rudy Gestede gave the hosts a lifeline with his 77th-minute close-range finish before Antonio Valencia added a third in stoppage time following an unfortunate slip by Valdes.

United are now just three points behind fourth-placed Liverpool with a game in hand. Boro, meanwhile, remain 19th and are five points from safety with 10 games remaining.