This phase II trial is studying how well tipifarnib works in treating young patients with recurrent or progressive high-grade glioma, medulloblastoma, primitive neuroectodermal tumor, or brain stem glioma. Tipifarnib may stop the growth of tumor cells by blocking the enzymes necessary for their growth.