Meningitis is an infection of the spinal cord fluid and the tissue around the brain .