Cerebral edema is the excess accumulation of fluid (edema) in the intracellular or extracellular spaces of the brain.