A free boundary problem modeling thermal instabilities: Stability and bifurcation