Making use of the pullbacks, we reformulate the following quadratic functional equation: [inline-graphic not available: see fulltext] in the spaces of generalized functions. Also, using the fundamental solution of the heat equation, we obtain the general solution and prove the Hyers-Ulam stability of this equation in the spaces of generalized functions such as tempered distributions and Fourier hyperfunctions.