More than 2,400 crib and play yard mattresses sold on Amazon are being recalled for entrapment, fire and death risks.