The Hidden Linear Structure in Score-Based Models and its Application