PURPOSE: This phase I/II trial is studying the side effects and best dose of giving sorafenib together with cytarabine and to see how well it works in treating older patients with acute myeloid leukemia or high-risk myelodysplastic syndrome.