Giampaolo Pazzini and Mario Balotelli scored in the last five minutes as Milan clinched a 2-1 come-from-behind win at Cagliari on Sunday.
Cagliari looked on course for their first victory against Milan since 1998 after Marco Sau's clever finish in the 28th minute.
Milan missed a host of chances to equalise but with three minutes left, Balotelli again stepped up for new manager Clarence Seedorf, curling in an excellent free-kick.
The former Manchester City striker scored the winner in Seedorf's first match in charge – a 1-0 Serie A win against Verona – while he also netted in a 2-1 Coppa Italia quarter-final loss to Udinese on Wednesday.
And Pazzini – introduced as a substitute for Robinho on the hour-mark – hooked in Keisuke Honda's corner in the 89th minute, as his first league goal of the season gave Milan three precious points.
The late goals gave Milan their first back-to-back Serie A wins of the season, as Cagliari's winless run stretched to six matches.
With Christian Abbiati and Andrea Poli the latest Milan players to be struck down by the flu, want-away goalkeeper Marco Amelia made his first appearance of the season.
Cagliari were boosted by Friday's news that striker Mauricio Pinilla had his two-match suspension halved on appeal, allowing him to start, but Colombia forward Victor Ibarbo was still banned.
Amelia made a shaky start, with a miskick leading to an early Cagliari chance, but Andrea Cossu's heavy first touch robbed him of a shot on goal, while Robinho curled wide at the other end.
Cagliari then took the lead, against the run of play, after another shoddy Amelia clearance fell to Pinilla.
The Chilean picked out Sau with a chipped ball, and he took it down on his chest before showing excellent composure to wrong-foot Daniele Bonera and calmly slot the game's first goal.
Honda headed at Avramov following an excellent Mattia De Sciglio cross as Milan looked to respond, but their sluggishness at the back was highlighted by Bonera completely missing the ball, allowing Pinilla a shot on goal just before half-time.
Milan improved after the break, as Riccardo Montolivo shot wide just two minutes after the resumption, while Balotelli and Honda shot over, the latter after a clever one-two with Robinho.
But despite their continued chances, Milan could not take advantage, and they were nearly made to pay when Pinilla tried his luck with an angled drive from 18 yards that narrowly missed the top-left corner.
Kaka had a goalbound-header cleared by Davide Astori, but Balotelli's delightful set-piece, after Cagliari substitute Matias Cabrera's deliberate handball, set up a tense finish.
And Pazzini produced the goods for Milan, flicking a late corner into the back of the net to delight his new boss.
|Coach: D. López|
for M. Sau 69'
for A. Ekdal 76'
for D. Dessena 90'
|Did Carroll´s wondergoal give the West Ham striker whiplash?|
|Iniesta suffers calf injury|
|Swansea situation not ´hopeless´, says Clement|
|Real Sociedad 0 Barcelona 1: Neymar ends Anoeta curse|
|´Immeasurable bulls**t´ - Ligue 1 coach destroys Van Basten´s offside plan|
|Simeone praises Atletico´s precision in Copa Del Rey win|
|Fonte situation difficult for Southampton - Puel|
|´Some of the best football in the UK´ - Watford´s Mazzarri hails Bournemouth|
|Senegal 2 Zimbabwe 0: Cisse´s men charge into quarter-finals|
|Rivaldo backs Luis Enrique to deliver more Barca success|
|Atletico Madrid 3 Eibar 0: Routine win earns quarter-final lead|
|Jesus will make Premier League history - Rivaldo|
|Adebayor: Arsenal are just Ozil and Sanchez|
|Algeria 1 Tunisia 2: Favourites on brink of elimination|
|Bayern keen to seal Coman deal as Rummenigge cools Gnabry interest|
|Pochettino has done his homework on Jesus as Spurs look to march on|
|Scrap offside? Premier League managers give Van Basten´s plans a cool reception|
|Coman ready for Bayern comeback, confirms Ancelotti|
|Pochettino upbeat despite six weeks out for Vertonghen, Lamela still a mystery|
|Cerezo defiant over Griezmann amid talk of Manchester United agreement|
|Robinho named in Brazil squad for Chapecoense fundraiser|
|Davies and Lookman aren´t the big men of Everton, warns Koeman|
|Ivory Coast v DR Congo: Dussyer demands champions show true strength|
|Replacing Robben and Ribery not easy - Hitzfeld|
|Yeray back in Athletic training after successful cancer surgery|
|Karanka targeting more Boro deals after Bamford swoop|
|Cavani: I am the ultimate finisher|
|Morocco v Togo: El Ahmadi hungry for success|
|Ancelotti denies Verratti approach|
|A-League Review: Cahill double sees Melbourne City sink Mariners|
|Manchester United very happy with Shaw, insists agent|
|Mertesacker extends Arsenal deal|
|Boost for Arsenal as key quartet returns to training|
|Will Jesus save Manchester City´s title bid? Guardiola´s new striker in Opta numbers|
|Tevez mobbed after touching down in Shanghai|
|Payet exit not inevitable - Bilic|
|Wenger: Arsenal don´t need Payet|
|Jesus wants Manchester City titles|
|Orsolini arrives for Juventus medical|
|Rivaldo backs Coutinho to join Neymar at Barcelona|
|No danger of Messi leaving Barcelona, says father|
|Augusto: I convinced Oscar to come to China|
|Madrid-bound Maradona visits Napoli training|
|Sevilla in no rush over Sampaoli talks despite Barcelona links|
|Cafu: Resurgent Brazil can challenge world´s best|
|Klopp thrilled with Coutinho|
|Manchester United replace Real Madrid as world´s richest club|
|Madrid squad annoyed by defeats - Zidane wants more energy after latest loss|
|Casemiro rues more misery for Madrid against Celta|
|´Job done, let´s go home´ - Klopp happy to avoid extra time with narrow Plymouth win|
|FA Cup Review: Southampton leave it late to beat Norwich|
|Real Madrid 1 Celta Vigo 2: Aspas and Jonny extend Madrid winless run|
|Plymouth Argyle 0 Liverpool 1: Rare Lucas goal sees Klopp´s men through|
|Manchester City in La La Land as Schalke toil underground|
|Cameroon 2 Guinea-Bissau 1: Ngadeu-Ngadjui completes comeback to send Broos´ men top|
|Monaco confirm signing of Ajax teenager Antonucci|
|Manchester United´s interest in Griezmann is unsurprising - Simeone|
|Bamford ends spell in Chelsea wilderness with Boro return|
|Louis the great - Luis Enrique explains his and Barca´s debt to Van Gaal|
|Gabon 1 Burkina Faso 1: Spot-on Aubameyang makes his point|
|PSG send Ikone on loan to Montpellier|
|Senegal v Zimbabwe: Cisse wants to live up to favourites tag|
|Ghana´s Rahman leaves AFCON with knee injury|
|Algeria v Tunisia: Mahrez demands improvement in crucial Group B clash|
|Dortmund forward Dembele hits out at Bundesliga refereeing|
|Robben hopes Alonso stays at Bayern amid retirement rumours|
|Asian champions Jeonbuk banned from 2017 Champions League|
|Rakitic still an important player for Barcelona - Luis Enrique|
|Jesus will develop quicker at City - Emerson|
|Always take the weather with you - Spanish snow blights CSKA´s training camp|
|Messi never gave Coach interview, claims father|
|Gotze questions critics but admits to falling short of expecations|
|´Conte can have our title´ - Ranieri wants Chelsea to win the Premier League|
|Tottenham reject Premier League, Bundesliga offers for Wimmer|
|Liverpool sell Ilori to Reading|
|Potential victims in football abuse probe surpasses 500|
|Bonaventura signs new AC Milan contract|
|Messi: Ronaldo has achieved great things|
|Koscielny: Wenger has built men at Arsenal|
|Messi vows to stay at Barcelona ´for as long as they want me´|
|Cafu adamant Neymar will become world´s best|
|I´m just taking a sabbatical - Van Gaal denies he´s retired|
|Not even Gerrard won Premier League - Buttner says he´s not a United flop|
|Samper ignored Wenger as Barca midfielder rejected Arsenal|
|Pleased Pioli wants more from Inter|
|Evergrande boss Scolari dismisses Turan links|
|Klopp seeks legal advice over Matip|
|Marseille complete Sanson move|