SEATTLE — Microsoft is recalling about 2.44 million of its Surface tablet power cords because of the risk of fire or electrical shocks, the U.S. Consumer Product Safety Commission said Tuesday.

Seattle-based Microsoft has received 56 reports of AC cords overheating and emitting flames, and five reports of electric shock, the commission said.

The recall applies to AC power cords sold before March 15, 2015, that accompanied Microsoft’s Surface Pro, Surface Pro 2 and Surface Pro 3 tablets. The U.S. Consumer Product Safety Commission has more details on the recall on its website.

Microsoft said in a blog post, the cords can overheat if wound too tightly, pinched or twisted over an extended period of time.

A Microsoft spokesman didn’t say whether the company was aware of any injuries or property damage caused by recalled power cables.

“Despite the absence of serious injury reports, Microsoft is offering free replacements to enhance the customer experience and ensure optimal product performance,” the company said in a statement.