The theory of coherent population trapping resonance is developed for the finite linewidth of the laser radiation spectrum in an optically dense medium of Λ atoms in a cell with a buffer gas. Equations are derived for the atomic density matrix and laser emission spectrum transfer in a cell with working and buffer gases at a finite temperature. The dependence of the quality factor of coherent population trapping resonance on the linewidth of the laser radiation spectrum is studied by measuring transmitted radiation and fluorescence signals.