This phase II trial studies how well bendamustine hydrochloride works in treating patients with anaplastic glioma or glioblastoma that has come back (recurrent) or growing, spreading or getting worse (progressive). Drugs used in chemotherapy, such as bendamustine hydrochloride, work in different ways to stop the growth of tumor cells, either by killing the cells or by stopping them from dividing.