In this paper, we consider the pricing of the CDS (credit default swap) under a GMFBM (generalized mixed fractional Brownian motion) model. As the name suggests, the GMFBM model is indeed a generalization of all the FBM (fractional Brownian motion) models used in the literature, and is proved to be able to effectively capture the long-range dependence of the stock returns. To develop the pricing mechanics of the CDS, we firstly derive a sufficient condition for the market modeled under the GMFBM to be arbitrage free. Then under the risk-neutral assumption, the CDS is fairly priced by investigating the two legs of the cash flow involved. The price we obtained involves elementary functions only, and can be easily implemented for practical purpose. Finally, based on numerical experiments, we analyze quantitatively the impacts of different parameters on the prices of the CDS. Interestingly, in comparison with all the other FBM models documented in the literature, the results produced from the GMFBM model are in a better agreement with those calculated from the classical Black-Scholes model. © 2014 Published by Elsevier B.V. All rights reserved.