Former chief minister H D Kumaraswamy successfully underwent a heart replacement surgery on Saturday and his condition is stable now, said the lead surgeon who conducted his operation.