To sterilize a memory foam mattress, combine 1/2 cup white vinegar and 1 cup water in a spray bottle and softly sprinkle it over the mattress. Take extra caution not to wet the surface. Allow 30 minutes for the vinegar mixture to rest.