Usually these are found in the subcortical and central white matter and cortical gray-white junction of both cerebral hemispheres , cerebellum , brainstem , and spinal cord, but periventricular white matter and gray matter of the cortex , thalami and basal ganglia may also be involved.