Madoff, 75, also has stage four kidney disease, but is not receiving dialysis.
Madoff, who has served less than five years of his 150-year prison sentence for running the largest investment fraud in U.S. history, confirmed the details of his health in an email to CNBC. Madoff says he was hospitalized last month at Duke University Medical Center, and has since been returned to the medium security federal prison in nearby Butner, N.C.
The U.S. Bureau of Prisons declined to comment on Madoff's condition or treatment.
-By CNBC's Scott Cohn. Follow him on Twitter @ScottCohnCNBC