Carvedilol is a beta blocker used for treating mild to severe congestive heart failure ( CHF ) , left ventricular dysfunction ( LVD ) following a heart attack in people who are otherwise stable , and for treating high blood pressure .