Mali led 2-0 through a diving header by Mahamadou Samassa and Seydou Keita's third goal of the tournament, but Ghana's Wakaso Mubarak missed the chance to net his fifth when he blazed a 58th-minute penalty over the bar in the pouring rain at Nelson Mandela Stadium in Port Elizabeth.
Khalil smashed a shot against the bar after the hour mark, but the unlucky Abbas decisively turned the ball into his own net in injury-time as he tried to cut out a cross from Iraq captain Younis Mahmoud.