This phase I/II trial is studying the side effects and best dose of imatinib mesylate and to see how well it works in treating patients with a recurrent brain tumor that has not responded to previous surgery and radiation therapy. Imatinib mesylate may stop the growth of tumor cells by blocking the enzymes necessary for tumor cell growth.