The Oldroyd–B model for a linear viscoelastic fluid is employed to investigate the buoyant flow in a vertical porous layer with permeable boundaries kept at different uniform temperatures. Seepage flow in the viscoelastic fluid saturated porous layer is modelled through an extended version of Darcy’s law taking into account the Oldroyd–B rheology. The basic stationary flow is parallel to the vertical axis and describes a single–cell vertical pattern where the cell has an infinite vertical height. A linear stability analysis of such a basic flow is carried out to determine the onset conditions for a multicellular pattern. The neutral stability curves and the values of the critical Rayleigh number are evaluated numerically for different retardation time and relaxation time characteristics of the fluid.