How long can folliculitis last?

Lifetime. There are several common causes. One that's relatively little-known is pityrosporum; it's easy to treat if you figure out what it is. Best wishes.