[en] We present a new computational technique to evaluate divergent loop diagrams in renormalizable cavity field theories. The method, which is based on dimensional regularization, is applied to the case of the linearly divergent quark self-energy or Lamb shift in cavity QCD. (orig.)