OBJECTIVES: I. Determine the efficacy of temozolomide and thalidomide in patients with recurrent or progressive supratentorial glioblastoma multiforme or gliosarcoma. II. Determine the toxicity of this regimen in these patients.