Let R be a commutative Noetherian ring and let M be a non-zero finitely generated R-module. Let I be an ideal of R and t a non-negative integer such that dim Supp H I i ( M ) ⩽ 1 for all i < t . It is shown that the R-modules H I 0 ( M ) , H I 1 ( M ) , … , H I t − 1 ( M ) are I-cofinite and the R-module Hom R ( R / I , H I t ( M ) ) is finitely generated. This immediately implies that if I has dimension one (i.e., dim R / I = 1 ), then H I i ( M ) is I-cofinite for all i ⩾ 0 . This is a generalization of the main results of Delfino and Marley [D. Delfino, T. Marley, Cofinite modules and local cohomology, J. Pure Appl. Algebra 121 (1997) 45–52] and Yoshida [K.I. Yoshida, Cofiniteness of local cohomology modules for ideals of dimension one, Nagoya Math. J. 147 (1997) 179–191] for an arbitrary Noetherian ring R. Also, we prove that if R is local and dim Supp H I i ( M ) ⩽ 2 for all i < t , then the R-modules Ext R j ( R / I , H I i ( M ) ) and Hom R ( R / I , H I t ( M ) ) are weakly Laskerian for all i < t and all j ⩾ 0 . As a consequence, it follows that the set of associated primes of H I i ( M ) is finite for all i ⩾ 0 , whenever dim R / I ⩽ 2 .