The CSF fills the space that surrounds the brain and wastes from inside their brain make their way out to the CSF which gets dumped along with the waste into the blood.
But for any nutrients to enter and leave the CSF, and the brain itself for the matter, they have to go through the tightly regulated by the blood-brain barrier.