As far as i know, its permanent.
Its incredibly irritating, especially if, during your war, two of your temporarily independent vassals get involved in seperate wars. When your war ends, everyone else returns to the fold except those involved in their seperate war. Its infuriating.