The Portugal international was approaching the final six months of his deal, which would have allowed overseas clubs to approach him over a pre-contract agreement from January 1.
Fernandes recently confirmed that negotiations over a new contract had been paused, with both parties understood to have agreed to revisit discussions once United's results improve.
The extension also ensures United would be able to demand a transfer fee should they consider selling the midfielder next summer.
Fernandes has scored 115 goals in 343 appearances since joining from Sporting Lisbon in January 2020. He enjoyed an outstanding campaign last season, setting a new Premier League assists record as United secured a third-place finish.
The 32-year-old was previously the subject of interest from Saudi Pro League side Al Hilal in 2025 but opted to remain at Old Trafford.
His availability for Saturday's meeting with Brentford is uncertain after he missed Friday's training session with a virus.
Fernandes scored twice against Sporting in Wednesday's 2-2 Champions League draw, but Mauricio Pochettino confirmed that his fitness would be assessed before a decision was made.
"We are going to assess during the day and then tomorrow see how he is when he wakes up. We are not going to take any risks," the United boss said.
The contract decision comes as United struggle in 19th place in the Premier League following their worst top-flight start in 40 years.