1 Introduction

The celebrated singularity theorems of Hawking and Penrose [1,2,3] have shown that under fairly general conditions, a sufficiently massive collapsing object will undergo continual gravitational collapse, resulting in the formation of a curvature singularity. However, the singularity is not visible to a far-away observer which essentially means that a black hole has formed. It is widely believed that these singularities do not exist in Nature, but that they are the artefact of classical general relativity. The existence of a singularity means spacetime ceases to exist, signal a breakdown of physics laws and that they must be resolved in a theory of quantum gravity [4, 5]. While we are far from a definite quantum gravity, attention has been shifted to regular models that are motivated by quantum arguments. The earliest idea of Sakharov [6] and Gliner [7], suggests that singularities could be avoided by matter, i.e., with a de Sitter core, with the equation of state \(p=-\rho \) obeyed by the cosmological constant.

Bardeen [8], realized the idea, proposed the first regular black holes, i.e., there are horizons but there is no singularity. The spherically symmetric Bardeen metric is given by

$$\begin{aligned} \mathrm {d}s^2=g_{\mu \nu } \otimes \mathrm {d}x^{\mu } \otimes \mathrm {d}x^{\nu },\;\;\;\;(\mu ,\nu =0,1,2,3), \end{aligned}$$
(1)

with \(g_{\mu \nu }= \text {diag} (-f(r),f(r)^{-1},r^2,r^2\sin ^2 \theta )\) and

$$\begin{aligned} f(r)= & {} 1-\frac{2mr^2}{(r^2+e^2)^{3/2}}\\= & {} 1-\left( \frac{m}{e}\right) \frac{2(r/e)^2}{(1+(r/e)^2)^{3/2}},\;\;\;\; \text {and}\;\;\;\; r\ge 0. \end{aligned}$$

An analysis of \(f(r)=0\) reveals a critical value \(\psi ^{*}\) such that f(r) has a double root if \(\psi =\psi ^{*}\), two roots if \(\psi <\psi ^{*}\) and no root if \(\psi >\psi ^{*}\), with \(\psi =m/e\) [9]. These cases illustrate, respectively, an extreme black hole with degenerate horizons, a black hole with Cauchy and event horizons, and no black hole. Later, Ayon-Beato and Garcia [10,11,12,13] invoked nonlinear electrodynamics a to generate the Bardeen model [8], i.e., an exact solution of general relativity coupled to nonlinear electrodynamics. Bronnikov [14,15,16,17] purposed that it must be a magnetic field instead of an electric field as purposed in [10, 11], which serves as matter field to get regular black hole solutions of general relativity coupled to nonlinear electrodynamics. The Bardeen solution is regular everywhere, that can be realized from behaviour of the scalar invariants, Ricci scalar (R), Ricci square (\(\mathcal {R} = R_{\mu \nu } R^{\mu \nu }\)) and Kretschmann scalar (\(\mathcal {K} = R_{\mu \nu \rho \sigma } R^{\mu \nu \rho \sigma }\)), which are given by

$$\begin{aligned} R= & {} \frac{6me^2(4e^2-r^2)}{(r^2+e^2)^{7/2}},\nonumber \\ \mathcal {R}= & {} \frac{18m^2e^4(8e^4-4e^2r^2+13r^4)}{(r^2+e^2)^7}\nonumber \\ \mathcal {K}= & {} \frac{12m^2}{(r^2+e^2)^7}\Big [8e^8-4e^6r^2+47e^4r^4-12e^2r^6+48r^8\Big ],\nonumber \\ \end{aligned}$$
(2)

where\(R_{\mu ,\nu }\) and \(R_{\mu \nu \rho \sigma }\) are, respectively, Ricci and Reimann tensors. It is evident, that these are well behaved for m and \(e \ne 0\).

Subsequently, also there has been intense activities in the investigation of regular black holes and more recently [18,19,20,21]. But most of these solutions are more or less based on Bardeen’s model [8]. Also, some solutions in which generalized Bardeen model have been obtained in later years, which includes the Bardeen de Sitter solution [22], rotating or Kerr-like Bardeen’s solution [23] and noncommutative Bardeen solution [24].

The Bardeen’s regular metric is commonly used to compare with the classical black hole, in various applications which include thermodynamical properties [25,26,27], geodesics equations [28], quasinormal modes [29,30,31,32,33], Hawking evaporation [34, 35] and black hole’s remnant [36]. The rotating Bardeen regular metric has been tested with a black hole candidate in Cygnus X-1 [37], and also shown that the it can also act as a natural particle accelerator [38]. Lately, the Bardeen’s solution is extended to higher dimensional spacetime [39].

Last few decades gravity witnessed considerable activities in higher dimensions motivated by the superstring and field theories. In addition to higher-curvature corrections to Einstein theory, string theory makes several predictions about nature, the most important ones are the existence of extra dimensions [40]. The Einstein–Gauss–Bonnet gravity is a natural and most effective generalization of Einsteins general relativity, to higher dimensions, motivated by the heterotic string theory. It was discovered first by Lanczos [41], and rediscovered by David Lovelock [42]. The Einstein–Gauss–Bonnet (EGB) theory allow us to explore several conceptual issues of gravity in a broader setup and the theory is known to be free of ghosts while expanding about the flat space [43]. The effective field equations, in the EGB theory, are of second-order like in general relativity, but admit, in D \(> 5\), new black hole solutions [44] that are unavailable to the Einstein theory. The first black hole solutions of EGB theory was obtained by Boulware and Deser [43] which is similar to its general relativity counterpart with a curvature singularity at \(r=0\). Later several authors studied exact black hole solutions in EGB theory and their thermodynamical properties [45,46,47,48,49,50,51,52,53,54,55,56,57].

The black holes with higher derivative curvature in Anti-de Sitter (AdS) spaces have been considered in the recent years, e.g., static AdS black hole solutions in EGB gravity with several interesting features [58,59,60]. Bardeen [8] was the first to purpose the regular black hole solution by taking a magnetic field as matter field, which have a de-Sitter core instead of singularity at the center. The enormous advancement on the applications of regular black holes makes it important to study these types of solutions in a broader setup. Demand of extra dimensions by string theory has made it very important and interesting to study the solutions in higher dimensional manifolds. Although, the generalized Bardeen solution in general relativity has been already presented in [39], but the broader setup of EGB gravities motivated us to obtain generalized Bardeen solution in EGB. However, there are many solutions of EGB coupled with nonlinear electrodynamics [61, 62] already present in the literature, but those are not regular black hole solutions. Thus, the purpose of this paper is to obtain a D-dimensional spherically symmetric Bardeen-like black holes solution for the EGB gravity in AdS spacetimes, viz., Bardeen–EGB–AdS metric. It is shown that the Bardeen–EGB–AdS metric is an exact black hole solution of EGB coupled to nonlinear electrodynamics in AdS spacetime thereby generalizing the Boulware–Desser solution [43] which is encompassed as a special case. We analyze their thermodynamical properties to find a stable black hole remnant and also perform a thermodynamic stability analysis of the Bardeen–EGB–AdS black holes.

The paper is ordered as: we obtain D-dimensional Bardeen–EGB–AdS black hole metric for a nonlinear electrodynamics as a source in Sect. 2 and also give the basic equations governing EGB theory. We investigated the structure and location of the horizons of the D-dimensional Bardeen–EGB–AdS Black holes metric along with their energy conditions in Sect. 2. Section 3 is devoted to the study of the thermodynamical properties of D-dimensional Bardeen–EGB–AdS Black holes with a focus on the stability and also discuss black hole’s remnant. We end the paper with our concluding remarks in Sect. 5. We use the units such that \(G=c=1\).

2 Einstein–Gauss–Bonnet with nonlinear electrodynamics

Our paper begins with the action of Einstein–Gauss–Bonnet gravity with the negative cosmological constant coupled to nonlinear electrodynamics [63] which reads:

$$\begin{aligned} \mathcal {I}_{G}= & {} \frac{1}{2}\int _{\mathcal {M}}d^{D}x\sqrt{-g}\left[ R +\alpha \mathcal {L}_{GB}\nonumber \right. \\&\left. +\frac{(D-1)(D-2)}{l^2} +\mathcal {L}(F) \right] \end{aligned}$$
(3)

where \(\Lambda =-(D-1)(D-2)/2l^2\) is the cosmological constant and \(\alpha \) is the Gauss–Bonnet coupling coefficient with dimension [length]\(^2\). The discussion will be given here corresponding to the case with \(\alpha \ge 0\) [64, 65]. The nonlinear electrodynamics is described by \(\mathcal {L}(F)\) in the invariant \( {F}=F_{\mu \nu }F^{\mu \nu }/4\), where \(F_{\mu \nu }\) is associated with gauge potential \(A_{\nu }\) via \(F_{\mu \nu }=2\nabla _{[\mu }A_{\nu ]}\). The Gauss-Bonnet Lagrangian is of the form [44, 57, 63]

$$\begin{aligned} \mathcal {L}_{GB}=R_{\mu \nu \gamma \delta }R^{\mu \nu \gamma \delta }-4R_{\mu \nu }R^{\mu \nu }+R^{2}, \end{aligned}$$
(4)

Here \(R_{\mu \nu }\), \(R_{\mu \nu \gamma \delta }\) and R are respectively the Ricci tensors, Riemann tensors, and Ricci scalar. The variation of the action with respect to the metric \(g_{\mu \nu }\) gives the following EGB equations of motion [57]

$$\begin{aligned}&G_{\mu \nu }+\alpha H_{\mu \nu }+\Lambda g_{\mu \nu } = T_{\mu \nu }\nonumber \\&\quad \quad \equiv 2\left[ \frac{\partial \mathcal {L}(F)}{\partial F}F_{\mu \rho }F_{\nu }^{\rho }-g_{\mu \nu }\mathcal {L}(F)\right] , \end{aligned}$$
(5)
$$\begin{aligned}&\nabla _{\mu }\left( \frac{\partial \mathcal {L}(F)}{\partial F}F_{\mu \nu }\right) =0~~~ \text {and}~~~\nabla _{\mu }\left( ^*F_{\mu \nu }\right) =0. \end{aligned}$$
(6)

where \(G_{\mu \nu }\) is the Einstein tensor and \(H_{\mu \nu }\) is Lanczos tensor [66]

$$\begin{aligned} H_{\mu \nu }= & {} 2\;\Big ( -R_{\mu \sigma \kappa \tau }R_{\quad \nu }^{\kappa \tau \sigma }-2R_{\mu \rho \nu \sigma }R^{\rho \sigma }-2R_{\mu \sigma }R_{\ \nu }^{\sigma }\nonumber \\&+RR_{\mu \nu }\Big ) -\frac{1}{2}\mathcal {L} _{GB}g_{\mu \nu }, \end{aligned}$$
(7)

Following [22], we have the Lagrangian density of the matter field is [39]

$$\begin{aligned} \mathcal {L}(F) =\frac{D-2}{4se^2}\left[ \frac{\sqrt{2e^2F}}{1+\sqrt{2e^2F}} \right] ^\frac{2D-3}{D-2}, \end{aligned}$$
(8)

with

$$\begin{aligned} s =\frac{e^{D-3}}{(D-1)\mu '^{D-3}} \end{aligned}$$
(9)

We consider the following anstaz for the Maxwell field [39]

$$\begin{aligned} F_{\mu \nu }= & {} 2\delta ^{\theta _{1}}_{[\mu }\delta ^{\theta _{2}}_{\nu ]}g\sin \theta _{1};\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \quad D=4,\nonumber \\ F_{\mu \nu }= & {} 2\delta ^{\theta _{D-3}}_{[\mu }\delta ^{\theta _{D-2}}_{\nu ]}\frac{g^{D-3}}{r^{D-4}}\sin \theta _{D-3}\left[ \prod _{j=1}^{D-4}\sin ^2\theta _{j}\right] ;\, \quad D\ge 5.\nonumber \\ \end{aligned}$$
(10)

Equation (6) implies that \(dF=0\), thereby we obtains

$$\begin{aligned}&e'(r)2\delta ^{\theta _{D-3}}_{[\mu }\delta ^{\theta _{D-2}}_{\nu ]}\frac{g^{D-3}}{r^{D-4}}\sin \theta _{D-3}\left[ \prod _{j=1}^{D-4}\sin ^2\theta _{j}\right] \nonumber \\&\quad d\theta \wedge d\phi \wedge \cdots \wedge d\psi _{(D-2)}=0. \end{aligned}$$
(11)

This leads to \(e(r)=e=\) constant. Interestingly, the other components of \(F_{\mu \nu }\) have negligible influence in comparison of \(F_{\theta \phi }\) [39, 66]. The energy momentum tensor can be given as

$$\begin{aligned} T^t_t= & {} T^r_r =\beta \frac{\mu 'e^{D-2}}{(r^{D-3}+e^{D-3})^{\frac{2D-3}{D-2}}}, \end{aligned}$$
(12)

with

$$\begin{aligned} \beta =(D-1)(D-2) \end{aligned}$$
(13)

Using energy momentum tensor from Eq. (12), we can obtain the Bardeen–EGB–Ads black hole solution in the following section.

3 Bardeen Anti de-Sitter black holes in EGB theory

We wish to obtain D-dimensional static spherically symmetric solutions of Eq. (5). We assume the metric to be of the following form [57, 66]

$$\begin{aligned} ds^2 = -f(r) dt^2+ \frac{1}{f(r)} dr^2 + r^2 \tilde{\gamma }_{ij}\; dx^i\; dx^j, \end{aligned}$$
(14)

where \( \tilde{\gamma }_{ij} \) is the metric of a \((D-2)\)-dimensional constant curvature space \(k = 1,\; 0,\;\) or \(-\,1\). The spherically symmetric static black hole solution of EGB theory was obtained by Boulware and Deser [43]. Using metric (14), the (rr) equation of field equation reduces to

$$\begin{aligned}&(D-2)\Big [\left( r^{3}-2\tilde{\alpha }r\left( f\left( r\right) -1\right) \right) f^{\prime }\left( r\right) \nonumber \\&\qquad + \left( D-3\right) r^{2}\left( f\left( r\right) -1\right) \nonumber \\&\qquad -\left( D-5\right) \tilde{\alpha }\left( f\left( r\right) -1\right) ^{2}\Big ]+\Lambda \nonumber \\&\quad =\beta \frac{\mu 'e^{D-2}}{(r^{D-3}+e^{D-3})^{\frac{2D-3}{D-2}}}, \end{aligned}$$
(15)

where prime denotes a derivative with respect to r and \(\tilde{\alpha }=\) \(\left( D-3\right) \left( D-4\right) \alpha \). The Eq. (15) can be easily integrated to give general solution as

$$\begin{aligned}&f_{\pm }\left( r\right) \nonumber \\&\quad =1+\frac{r^{2}}{2\tilde{\alpha }}\left( 1\pm \sqrt{1+\frac{4\tilde{\alpha }\mu '}{\left( r^{D-2}+e^{D-2}\right) ^{\frac{D-1}{D-2}}}-\frac{4\tilde{\alpha }}{l^2}}\right) ,\nonumber \\&\quad \,D\ge 5 \end{aligned}$$
(16)

where \(\mu '\) is the mass of the black hole it is related to the Arnowitt–Deser–Misner (ADM) mass M with relation [57]

$$\begin{aligned} \mu ' =\frac{16 \pi M}{(D-2) V_{D-2}},\qquad \text {with}\qquad V_{D-2}=\frac{2\pi ^{(D-1)/2}}{\Gamma {(D-1)/2}},\nonumber \\ \end{aligned}$$
(17)

where \(V_{D-2}\) is the volume of the \((D-2)\)-dimensional unit sphere. There are two families of solutions which correspond to the signs \((\pm )\) in front of square root in (16). To get the real solution, f(r) must be real valued. So, we must consider the value of radial co-ordinate (r) such that the term under square root in (16) must be non-negative. For the case, \(1-4\tilde{\alpha }/l^2\ge 0\), that will always be non-negative. But for \(1-4\tilde{\alpha }/l^2<0\), there will be some values of r for which that term can be negative, so, for those values of r our solution is no more real valued. Hence, we can say that the Gauss–Bonnet coupling constant \(\tilde{\alpha }\) must lie in the interval \([0,l^2/4]\). Besides, the causality of dual theory demands another constraint on Gauss–Bonnet coupling constant [67, 68]

$$\begin{aligned}&-\frac{(3D-1)(D-3)}{4(D+1)^2}l^2\nonumber \\&\quad \le \tilde{\alpha } \le \frac{(D-3)(D-4)(D^2-3D+8)}{4(D^2-5D+10)^2}l^2 \end{aligned}$$
(18)

The solution (14) with (16) is a general spherically symmetric D-dimensional solution of EGB theory coupled to nonlinear electrodynamics in an AdS spacetime thereby generalizing the Bardeen solution. The special case in which charge \(e=0\) and \(\Lambda =0\), one get the Boulware–Deser solution [43]. It see that solution (14) with (16) gets for other field equation. For definiteness, henceforth, we shall call solution (16) Bardeen–EGB–AdS black holes. In the case of no charge \(e = 0\), Eq. (16) reduces to D-dimensional EGB–AdS black holes [59, 60, 63, 69,70,71,72,73,74] and in the limit, \(\alpha \rightarrow 0\), the negative branch of (16) to D- dimensional Bardeen–AdS black holes [39]

$$\begin{aligned} ds^2= & {} -\left[ 1-\frac{\mu 'r^2}{(r^{D-2}+e^{D-2})^{\frac{D-1}{D-2}}}+\frac{r^2}{l^2}\right] dt^2\nonumber \\&+ \frac{1}{\left[ 1-\frac{\mu 'r^2}{(r^{D-2}+e^{D-2})^{\frac{D-1}{D-2}}}+\frac{r^2}{l^2} \right] } dr^2 + r^2 \tilde{\gamma }_{ij}\; dx^i\; dx^j.\nonumber \\ \end{aligned}$$
(19)

Further, the solution also goes over to Schwarzschild–Tangherlini black hole [75] in the absence of charge. To study the structure of solution, we take limit \(r\rightarrow 0\) to obtain

$$\begin{aligned}&f(r)=1+\frac{r^2}{l^2_{{eff}}}, \end{aligned}$$
(20)

where (\(1/l_{eff}^2\)) is effective AdS length, it reads

$$\begin{aligned} \frac{1}{l_{{eff}}^2}=\frac{1}{2\tilde{\alpha }}\left( 1-\sqrt{1+\frac{4\mu '\tilde{\alpha }}{e^{D-1}}-\frac{4\tilde{\alpha }}{l^2}}\right) , \end{aligned}$$
(21)

which is describing a de Sitter solution for \(\tilde{\alpha }>0\) in the Bardeen–EGB–AdS black hole. When, we take \(r\gg e\), we get

$$\begin{aligned} f(r)\approx 1+\frac{r^2}{2\tilde{\alpha }}\left[ 1-\sqrt{1+\frac{4\tilde{\alpha }\mu '}{r_+^{D-1}}-\left( \frac{D-1}{D-2}\right) \frac{4\tilde{\alpha }\mu 'e^{D-2}}{r_+^{2D-3}}-\frac{4\tilde{\alpha }}{l^2}+\mathcal {O}\left( \frac{e^{2D-4}}{r_+^{3D-5}}\right) }\right] . \end{aligned}$$
(22)

From Eq. (22), one can easily notice that the charge density for our Bardeen–EGB–AdS solution is falling by \(1/r_+^{2D-3}\), but when we look for the charged EGB black hole [76], it falls by \(1/r_+^{2D-4}\).

The regularity of the black hole solution (16) can be seen by behaviour of the scalar invariants, which are given by

$$\begin{aligned} \lim _{r\rightarrow 0} R= & {} \frac{D(D-1)}{2\tilde{\alpha }}\left[ -1+\left( 1+\frac{4\mu '\tilde{\alpha }}{e^{D-1}}-\frac{4\tilde{\alpha }}{l^2}\right) ^{1/2}\right] ,\nonumber \\ \lim _{r\rightarrow 0} \mathcal {R}= & {} \frac{D(D-1)^2}{2\tilde{\alpha }^2}\left[ 1+\frac{2\mu '\tilde{\alpha }}{e^{D-1}}-\frac{2\tilde{\alpha }}{l^2}\nonumber \right. \\&\quad \left. -\left( 1+\frac{4\mu '\tilde{\alpha }}{e^{D-1}} -\frac{4\tilde{\alpha }}{l^2}\right) ^{1/2}\right] ,\nonumber \\ \lim _{r\rightarrow 0}\mathcal {K}= & {} \frac{D(D-1)}{\tilde{\alpha }^2}\left[ 1+\frac{2\mu '\tilde{\alpha }}{e^{D-1}}-\frac{2\tilde{\alpha }}{l^2}\nonumber \right. \\&\quad \left. -\left( 1+\frac{4\mu '\tilde{\alpha }}{e^{D-1}}-\frac{4\tilde{\alpha }}{l^2}\right) ^{1/2}\right] . \end{aligned}$$
(23)

Thus, the spacetime is regular everywhere as seen from the behavior of the invariants if \(e\ne 0\) and \(l\ne 0\). The D-dimensional Bardeen–EGB–AdS black hole solution is well defined everywhere by its curvature invariants.

Fig. 1
figure 1

Plot of metric function \(f_-(r)\) vs r in various dimensions D = 5, 6, 7, and 8 (top to bottom) for different values of charge e with Gauss–Bonnet coupling \(\alpha \) = 0.1 and 0.2 (left to right) with \(\mu '=1\)

Table 1 Radius of Cauchy horizon (\(r_-\)), the event horizon (\(r_+\)) and \(\delta = r_+-r_-\) for different values of charge e and dimension D

The weak energy condition states that \(T_{ab}t^at^b\ge 0\) for all time like vectors \(t^a\), i.e., the local energy density cannot be negative for any observer. The dominant energy condition states that \(T_{ab}t^at^b\ge 0\) and \(T^{ab}t_b\) must be space like, for any time like vector \(t^a\). Hence, the energy conditions require \(\rho \ge 0\) and \(\rho +P_i\ge 0\),

$$\begin{aligned} \rho \!+\!P_2\!=\!\rho \!+\!P_3\!=\!\rho \!+\!P_4=\beta \frac{(D-2)\mu 'e^{D-2}}{(r^{D-3}+e^{D-3})^{\frac{2D-3}{D-2}}}. \end{aligned}$$
(24)

Where \(\beta =(D-1)\) and \((D-4)\) are, respectively, for even and odd dimensions. It is worthwhile to note that \(\rho > P_3 \) and \(P_1 = - \rho \). Thus the Bardeen–EGB–AdS black holes obey the weak energy condition.

Next, we proceed to discuss the horizon structure of our Bardeen–EGB–AdS black holes. The horizons radius, if exists, are zeros of \(g^{rr}=f(r)=0\). The numerical analysis of \(f(r)=0\) reveals that it is possible to find non-vanishing value of \(\alpha \) and e for which metric function f(r) is minimum, i.e, \(f(r)=0\) admits two roots \(r_{\pm }\). The smaller and larger roots, respectively, corresponds to the Cauchy and event horizon of the black holes. We have shown that for a given value of \(\alpha \) and fixed \(\mu '\), there exists a critical charge parameter \(e_E\), and critical horizon radius \(r_E\), such that \(f(r_E)=0\) has a double root, i.e, \(r_E=r_{\pm }\). This case corresponds to the extremal Bardeen–EGB–AdS black holes with degenerate horizons. When \(e < e_E\) the two horizons \(r_{\pm }\) correspond to the non-extremal black hole and \(e>e_E\) has no horizon, i.e., no black holes (cf. Fig. 1 and Table 1). It is clear that the critical value of \(e_E\) and \(r_E\) depend upon the coupling constant \(\alpha \). For \(\alpha =0.1\), 0.2 the critical value of the charge corresponds to the degenerate horizon for \(D=5,6,7 \) and 8 are shown in Table 1. Also, the radius of the event horizon decreases with increase in Gauss–Bonnet coefficient \(\alpha \) and increases with charge e and dimensions D as shown in Fig. 1.

4 Black hole thermodynamics

In this section, we explore the thermodynamics of the Bardeen–EGB–AdS black holes. Henceforth, we shall restrict our discussion to the negative branch of solution (16). The black hole thermodynamics provides the insight into quantum properties of gravitational field, in particular, the thermodynamics of AdS black holes has been of great interest to the astrophysicists since the pioneering work by Hawking and Page [77], who suggested the existence of a phase transition in AdS black holes. The Bardeen–EGB–AdS black hole is characterized by mass M, charge e and \(\Lambda \). The black hole mass can be determined by using \(f(r_+)=0\) in terms of horizon radius \(r_+\) as

$$\begin{aligned} M_+= & {} \frac{(D-2)V_{D-2}~r_{+}^{D-3}}{16 \pi } \nonumber \\&\times \left[ \left( 1 + \frac{\tilde{\alpha }}{r_{+}^2}+\frac{r_{+}^2}{l^2}\right) \left( 1+\frac{e^{D-2}}{r_+^{D-2}}\right) ^\frac{D-1}{D-2}\right] . \end{aligned}$$
(25)

The mass expression (25) reduces to the mass of EGB–AdS black hole [44, 59, 60, 63, 69, 69,70,71,72,73,74] in the absence of charge \((e=0)\) as

$$\begin{aligned} M_{+} = \frac{(D-2) V_{D-2}~r_{+}^{D-3} }{16 \pi } \left[ 1 + \frac{\tilde{\alpha }}{r_{+}^2}+\frac{r_{+}^2}{l^2}\right] , \end{aligned}$$
(26)

we recover the mass obtained for the EGB black hole [57, 78] when \(e=0, \text {and}\, \Lambda =0\) and further the mass for D-dimensional Bardeen–AdS black hole [39], in the limit \(\alpha \rightarrow 0\), yields

$$\begin{aligned} M_{+}= & {} \frac{(D-2) V_{D-2}~r_{+}^{D-3} }{16 \pi }\nonumber \\&\times \left[ \left( 1+\frac{r_+^2}{l^2}\right) \left( 1+\frac{e^{D-2}}{r_+^{D-2}}\right) ^{\frac{D-1}{D-2}}\right] . \end{aligned}$$
(27)

The Eq. (25) reduce to the mass of Schwarzschild–Tangherlini black hole [57, 79] when \(e=0\), \(\alpha \rightarrow 0\) . The black hole does have a temperature known as Hawking temperature defined by \(T=\kappa /2\pi \), where \(\kappa \) is the surface gravity given by [57, 79]

$$\begin{aligned} \kappa ^2=-\frac{1}{2}\nabla _\mu \xi _\nu \nabla ^\mu \xi ^\nu , \end{aligned}$$
(28)

where \(\xi ^\mu \) is a Killing vector. For static spherically symmetric case the Killing vector \(\xi ^\mu \), takes the form \(\xi ^\mu =\partial ^\mu _t\). Using the metric function (14), the surface gravity takes the following form

$$\begin{aligned} \kappa =\frac{1}{2}\frac{\partial {\sqrt{-g^{rr} g_{tt}}}}{\partial r}\mid _{r=r_+}=\frac{1}{2}\frac{df(r)}{dr}\mid _{r=r_+}. \end{aligned}$$
(29)

Hence, using (16), the Hawking temperature for the Bardeen–EGB–AdS black hole can be calculated as

$$\begin{aligned} T_+= & {} \frac{1}{4 \pi r_+} \left[ \frac{(D-3)r_{+}^2+(D-5)\tilde{\alpha }-\frac{2e^{D-2}}{r_{+}^{D-2}}(r_{+}^2+2\tilde{\alpha })+\frac{D-1}{l^2}r_{+}^4}{ (r_{+}^2+2\tilde{\alpha })\Big (1+\frac{e^{D-2}}{r_{+}^{D-2}}\Big )}\right] . \nonumber \\ \end{aligned}$$
(30)

The Hawking temperature is positive if

$$\begin{aligned} e^{D-2}<\frac{(D-3)l^2r_+^d+(D-1)r_+^{d+2}+(D-5)\tilde{ \alpha }l^2}{2l^2(r_+^2+2\tilde{ \alpha })} \end{aligned}$$
(31)

Note that the charge term modifies the Hawking temperature of EGB black holes, and taking limit \(e = 0, \Lambda = 0\), we recover the EGB black hole [57, 78] temperature as

$$\begin{aligned} T_+= & {} \frac{1}{4 \pi r_+} \left[ \frac{(D-3)r_{+}^2+(D-5)\tilde{\alpha }}{ r_{+}^2+2\tilde{\alpha }}\right] , \end{aligned}$$
(32)

We recover the D-dimensional Bardeen black hole temperature when \(\alpha = \Lambda =0\)

$$\begin{aligned} T_+ = \frac{1}{4 \pi r_+} \left[ \frac{(D-3)-2\frac{e^{D-2}}{r_{+}^{D-2}}}{ 1+\frac{e^{D-2}}{r_+^{D-2}}}\right] , \end{aligned}$$
(33)

which further reduces to \(T_+ =(D-3)/{4 \pi r_+}\), for Schwarzschild–Tangherlini black hole [57, 79] in the absence of charge (\(e= 0\)). The maximum temperature occurs at the critical radius \(r_C^T\) shown in Table 2. We can say that horizon radius \(r_E\) of the extremal black hole corresponds to zero temperature \(T_+=0\).

Table 2 The maximum Hawking temperature \(T_+^{Max}\) at critical radius \(r_C^T\) for different values of charge e and different dimension \(D=5,6,7\) and 8 with fixed value of \(l=10\)
Fig. 2
figure 2

The Hawking temperature \(T_+\) vs horizon radius \(r_+\) in various dimensions \(D = 5\), 6, 7, and 8 (top to bottom) for different values of charge (e) with Gauss–Bonnet coupling parameter \(\alpha = 0.1\) and 0.2 (left to right) with \(\mu '=1\)

Fig. 3
figure 3

The Hawking temperature \(T_+\) vs horizon radius \(r_+\) for different values of charge \(e = 0.3\), 0.45, 0.6, 0.7 (top to bottom) with Gauss–Bonnet coupling parameter \(\alpha = 0.1\) and 0.2 (left to right) in various dimensions with \(\mu '=1\)

Fig. 4
figure 4

The specific heat \(C_+\) vs horizon radius \(r_+\) in various dimensions \(D = 5\), 6, 7, and 8 (top to bottom) for different values of charge e with Gauss–Bonnet coupling parameter \(\alpha = 0.1\) and 0.2 (left to right) with \(\mu '=1\)

By numerical analysis, we conclude that the Hawking temperature vanishes at the radius of the black hole double horizon. The Hawking temperature diverges in the absence of charge (\(e=0\)), when \(r_+ \rightarrow 0\) except in 5D (see Fig. 2). However, it becomes finite for non zero value of charge e Fig. 2. The temperature depends on both charge e and Gauss–Bonnet parameter \(\alpha \). From Fig. 3, one can see that for small and large horizon radius (\(r_+\)), slope of the plot is positive, whereas it is negative for intermediate horizon radius, which is showing van der Waals like small-large black hole phase transition [80, 81].

To calculate an important quantity associated with the black hole, in term of horizon radius \(r_+\), known as entropy, we note that black hole behaves as thermodynamical system, quantities associated must obey first law of thermodynamics [82]

$$\begin{aligned} dM_+ = T_+dS_+ +\Phi de, \end{aligned}$$
(34)

where S is the entropy of the black hole and \(\Phi \) is potential and e is the constant charge. The entropy can be obtained by integrating Eq. (34) as

$$\begin{aligned} S_+=\int T_+^{-1} dM_+=\int T_+^{-1}\frac{\partial M_+}{\partial r_+}dr_+. \end{aligned}$$
(35)

Now, substituting Eqs. (25) and (30) in Eq. (35), the entropy of Bardeen–EGB–AdS black hole becomes

$$\begin{aligned} S_+= & {} \frac{(D-2)V_{D-2}\big (1+\frac{e^{D-2}}{r_+^{D-2}}\big )^\frac{D-1}{D-2}r_+^{D-2}}{4}\nonumber \\&\times \Bigg [(D-4)\frac{r_+^{D-2}}{e^{D-2}}H_1+(D-3)\Bigg [\frac{2\tilde{\alpha }}{r_+^2}H_2-(D-4)H_3\Bigg ]\nonumber \\&-(D-3)(D-4)\tilde{\alpha } \frac{e^{D-2}}{r_+^D}H_4\Bigg ], \end{aligned}$$
(36)

with

$$\begin{aligned} H_1= & {} _{2}F_1\left[ 1, 2,\frac{-(2D-5)}{(D-2)}, -\frac{r_+^{D-2}}{e^{D-2}}\right] ,\qquad \nonumber \\ H_2= & {} _{2}F_1\left[ 1,\frac{3}{(D-2)},\frac{2}{(D-2)}, -\frac{e^{D-2}}{r_+^{D-2}}\right] ,\nonumber \\ H_3= & {} _{2}F_1\left[ 1, 1,\frac{(D-3)}{(D-2)},-\frac{r_+^{D-2}}{e^{D-2}}\right] ,\quad \text {and}\nonumber \\ H_4= & {} _{2}F_1\left[ 1, \frac{(D+1)}{(D-2)},\frac{ D}{(D-2)},-\frac{e^{D-2}}{r_+^{D-2}}\right] . \end{aligned}$$
(37)

Where \(_{2}F_1\) is the hyper geometric function. The entropy (36) reduces to the entropy of EGB–AdS black hole [44, 59, 60, 63, 69, 69,70,71,72,73,74] in the absence of charge,

$$\begin{aligned} S_{+} = \frac{(D-2)V_{D-2}r_+^{D-4}}{4}\left[ \frac{r_+^2}{D-2}+\frac{2\tilde{\alpha }}{D-4}\right] . \end{aligned}$$
(38)

We recover the entropy of the EGB black hole [57] when \(e=0, \text {and}\, \Lambda =0\) and further we obtained the entropy for D-dimensional Bardeen black hole [39] in the limit \(\alpha \rightarrow 0\)

$$\begin{aligned} S_+= & {} \frac{(D-2)V_{D-2}\left( 1+\frac{e^{D-2}}{r_+^{D-2}}\right) ^\frac{D-1}{D-2}r_+^{D-2}}{4}\nonumber \\&\times \left[ (D-4)\frac{r_+^{D-2}}{e^{D-2}}H_1-(D-3)(D-4)H_3\right] , \end{aligned}$$
(39)

The Eq. (36) reduce to the entropy of Schwarzschild–Tangherlini black hole [57, 79] when \(e=0\), \(\alpha \rightarrow 0\). The entropy for our model differs from the expression for entropy in general relativity, in which it is proportional to the area of the event horizon [83]. However, it is interesting to note that the expression for entropy of the black hole is independent of cosmological constant.

5 Local stability and black hole remnants

In order to analyze local stability, we shall consider the specific heat of Bardeen–EGB–AdS black holes. The heat capacity of the black hole is given [44, 57]

$$\begin{aligned} C_+= & {} \frac{\partial {M_+}}{\partial {T_+}}=\left( \frac{\partial {M_+}}{\partial {r_+}}\right) \left( \frac{\partial {r_+}}{\partial {T_+}}\right) . \end{aligned}$$
(40)

The region of the parameter space where the specific heat is positive, the black hole are locally stable [57] to thermal fluctuations. Thus, when the specific heat is positive, then increase in the black hole temperature will result an increase in the entropy thereby giving the thermodynamic stable configuration. This is because a black hole at higher temperature is stable, while unstable at low temperature [57]. The heat capacity of Bardeen–EGB–AdS black hole reads

$$\begin{aligned} C_+= & {} \frac{(D-2) V_{D-2}\Bigg (1+\frac{e^{D-2}}{r^{D-2}_+}\Bigg )^\frac{2D-3}{D-2}(r^2_++2\tilde{\alpha })^2r^{D-4}_+}{4\Bigg (A\Bigg (\frac{e^{D-2}}{r^{D-2}_+}\Bigg )^2+B\frac{e^{D-2}}{r^{D-2}_+}-C+E\frac{1}{l^2}\Bigg )}\nonumber \\&\times \Bigg [(D-3)r^2_++(D-5)\tilde{\alpha }\nonumber \\&-2\frac{e^{D-2}}{r^{D-2}_+}(r^2_++2\tilde{\alpha })+\frac{D-1}{l^2}r_{+}^4\Bigg ], \end{aligned}$$
(41)

where

$$\begin{aligned} A= & {} 2(r^{2}_++2\tilde{\alpha })^2,\nonumber \\ B= & {} (D^2-4D+7)r^4_++(3D^2-10D+23)\tilde{\alpha }r^2_+\nonumber \\&+2(D^2-4D+11)\tilde{\alpha }^2,\nonumber \\ C= & {} (D-5)(3r^2_++2\tilde{\alpha })\tilde{\alpha }+(D-3)(r^2_+-2\tilde{\alpha })r^2_+,\nonumber \\ E= & {} \left[ (D-1)^2r^6_++2(D^2-1)\tilde{\alpha }r^4_+\right] \frac{e^{D-2}}{r^{D-2}_+}\nonumber \\&\quad +(D-1)(r^2_++6\tilde{\alpha })r^4_+. \end{aligned}$$
(42)

It can be seen clearly, that the heat capacity depends on the Gauss–Bonnet coefficient \({\alpha }\), charge e, cosmological constant \(\Lambda \) and the dimension D. In the absence of charge e, we reduce to the expression for heat capacity of EGB–AdS black hole [44, 59, 60, 63, 69, 69,70,71,72,73,74], which reads

Table 3 The state and stability of black hole with horizon radius \(r+\)
$$\begin{aligned} C_{+}= \frac{(D-2) V_{D-2}(r^2_++2\tilde{\alpha })^2\left[ (D-3)r^2_++(D-5)\tilde{\alpha }+\frac{D-1}{l^2}r_{+}^4\right] r^{D-4}_+ }{4\left[ (D-3)(r^2_+-2\tilde{\alpha })r^2_+-(D-5)(3r^2_++2\tilde{\alpha })\tilde{\alpha }+\frac{(D-1)(r^2_++6\tilde{\alpha })}{l^2}r^4_+\right] }, \end{aligned}$$
(43)

which is also the specific heat of EGB black hole when switch off the charge \(e=0\) [57, 78]. We recover the D-dimensional Bardeen black hole [39] specific heat in the limit \(\alpha =\Lambda = 0\)

Fig. 5
figure 5

Gibb’s free energy \(G_+\) vs horizon radius \(r_+\) in various dimensions \(D = 5\), 6, 7, and 8 (top to bottom) for different values of charge (e) with Gauss–Bonnet coupling parameter \(\alpha = 0.1\) and 0.2 (left to right) with \(\mu '=1\)

Table 4 The remnant size \(r_0\) and the remnant mass term \(\mu '_0\) for different values of parameter e with Gauss–Bonnet coupling constant \(\alpha =0.1\) with \(l=10\)
Table 5 The remnant size \(r_0\) and the remnant mass term \(\mu '_0\) for different values of parameter e with fixed value of Gauss–Bonnet coupling constant \(\alpha =0.2\) with \(l=10\)
$$\begin{aligned} C_{+}= & {} \frac{(D-2) V_{D-2}\left( 1+\frac{e^{D-2}}{r^{D-2}_+}\right) ^\frac{2D-3}{D-2}\left[ (D-3)-\frac{2e^{D-2}}{r^{D-2}_+}\right] r^{D-2}_+ }{4\left[ 2\left( \frac{e^{D-2}}{r^{D-2}_+}\right) ^2+(D^2-4D+7)\frac{e^{D-2}}{r^{D-2}_+}-(D-3)\right] }.\nonumber \\ \end{aligned}$$
(44)

We can find the specific heat for Schwarzschild Tangharhelini black hole in the limit \(e=0\) and \(\Lambda = \alpha =0\) [57]

$$\begin{aligned} C_{+} =-\frac{{(D-2)V_{D-2}}r^{D-2}_+}{4}. \end{aligned}$$
(45)

In what follows, we analyze the stability of the EGB–AdS black hole with the nonlinear electrodynamics source. Due to the complexity of Eq. (41), it is difficult to analyze the heat capacity analytically; hence, we plot it in Fig. 4 for different values of parameters in different dimensions. Clearly, the positivity of heat capacity \(C_+>0\) of the black hole is sufficient to state that the black hole is thermodynamically stable. Figure 4 shows that heat capacity is discontinuous exactly at one point for a given value of e and \(\alpha \), which is identified as the critical radius \(r^{C}_+\). Further, we noticed that the heat capacity changes its sign around \(r^{C}_+\). Thus, we can say the black hole is thermodynamically stable for \(r_1<r_+ < r^{C}_+\), whereas it is thermodynamically unstable for \(r_+>r_+^C\), and there is a second order phase transition at \(r_+=r^{C}_+\) from the stable to unstable phases. So, the heat capacity of Bardeen–EGB–AdS black hole, in any dimension for different values of e, \(\alpha \) and \(\Lambda \), is positive for \(r_1<r_+ < r^{C}_+\), and it is negative for \(r_1>r_+>r_+^C\). Here, we noticed from the Fig. 4 that the value of critical radius \(r^{C}_+\) increases with the increase in the charge e, for given value of Gauss–Bonnet coupling constant \(\alpha \) and cosmological constant. Thus, the change in the value of charge affected the thermodynamical stability of the black hole. One can find that the Bardeen–EGB–AdS black holes have two unstable regions and a stable region as shown in Table 3.

The global stability of the black hole can be the study by the behaviour of free energy. The Gibb’s free energy of black hole can be defined as [84]

$$\begin{aligned} G_+= & {} M_+-T_+S_+, \end{aligned}$$
(46)

substituting Eqs. (25) and (30) into Eq. (46), we get the expression for Gibb’s free energy of Bardeen–EGB–AdS black hole, which reads

$$\begin{aligned} G_+= & {} \frac{(D-2) V_{D-2}r_+^{D-3}(1+\frac{e^{D-2}}{r^{D-2}})^\frac{D-1}{D-2}}{16 \pi }\left[ \left( 1 + \frac{\tilde{\alpha }}{r_{+}^2}+\frac{r_{+}^2}{l^2}\right) \right. \nonumber \\&-\frac{(D-3)r_{+}^2+(D-5)\tilde{\alpha }-2\frac{e^{D-2}}{r_{+}^{D-2}}(r_{+}^2+2\tilde{\alpha }+\frac{D-1}{l^2}r_{+}^4)}{ \bigg (r_{+}^2+2\tilde{\alpha }\bigg )\bigg (1+\frac{e^{D-2}}{r_{+}^{D-2}}\bigg )}\nonumber \\&\times \left[ (D-4)\frac{r_+^{D-2}}{e^{D-2}}H_1+(D-3)\right. \nonumber \\&\times \left. \left. \left( \frac{2\tilde{\alpha }}{r_+^2}H_2-(D-4)H_3\right) -(D-3)(D-4)\tilde{\alpha }\frac{e^{D-2}}{r_+^D}H_4\right] \right] .\nonumber \\ \end{aligned}$$
(47)
Fig. 6
figure 6

Plot of metric function f(r) vs radius r in various dimensions \(D = 5\), 6, 7, and 8 (top to bottom) for different values of charge e with Gauss–Bonnet coupling parameter \(\alpha = 0.1\) and 0.2 (left to right) with \(\mu '=1\)

The Gibb’s free energy (47) reduces to the Gibb’s free energy of EGB–AdS black hole [44, 63, 69, 69,70,71,72,73,74] in the absence of charge \(e=0\),

$$\begin{aligned} G_+= & {} \frac{(D-2) V_{D-2}r_{+}^{D-3}}{16 \pi }\left[ \left( 1 + \frac{\tilde{\alpha }}{r_{+}^2}+\frac{r_{+}^2}{l^2}\right) \right. \nonumber \\&-\left( \frac{r_+^2}{D-2}+\frac{2{\tilde{\alpha }}}{D-4}\right) \nonumber \\&\left. \times \left[ \frac{(D-3)r_{+}^2+(D-5){\tilde{\alpha }}+\frac{(D-1)r_+^4}{l^2}}{r_+^2(r_+^2+2{\tilde{\alpha }})}\right] \right] \end{aligned}$$
(48)

we recover the Gibb’s free energy of the EGB black hole [44] when \(e=0, \text {and}\, \Lambda =0\) and further we obtained the Gibb’s free energy for D-dimensional Bardeen black hole [39] in the limit \(\alpha \rightarrow 0\)

$$\begin{aligned} G_+= & {} \frac{(D-2) V_{D-2}\Bigg (1+\frac{e^{D-2}}{r^{D-2}}\Bigg )^\frac{D-1}{D-2}r_{+}^{D-3}}{16 \pi }\Bigg [\Bigg (1 +\frac{r_{+}^2}{l^2}\Bigg )\nonumber \\&-\frac{(D-3)r_{+}^2-\frac{2e^{D-2}}{r_{+}^{D-2}}\Bigg (r_{+}^2+\frac{D-1}{l^2}r_{+}^4\Bigg )}{ r_{+}^2\Bigg (1+\frac{e^{D-2}}{r_{+}^{D-2}}\Bigg )}\nonumber \\&\times \Bigg [(D-4)\frac{r_+^{D-2}}{e^{D-2}}H_1-(D-3)(D-4)H_3\Bigg ]\Bigg ]. \end{aligned}$$
(49)

The plot for Gibb’s free energy with horizon radius in various dimensions has been shown in Fig. 5. Here, from Fig. 5, we noticed that the peaks of free energy increase and shift to the right as the value of charge e grows for given value of Gauss–Bonnet coupling parameter \(\alpha \) and \(\Lambda \). The peak also increase as the value of \(\alpha \) grows. The behaviour of free energy suggests it is mostly positive for larger \(r_+\). From Fig. 5, one can see that Bardeen–EGB–AdS black hole more stable for smaller \(r_+\).

The remnant of a black hole is a localized late stage of the black hole after the Hawking evaporation, which is either absolutely stable or long-lived [85]. It is very important to study the black hole remnant as it is a candidate to be the source of dark matter [86] as well to resolve the information loss paradox of black hole [87]. We can get the radius \(r_E\) of black hole remnant from \(f^{\prime }(r)|_{r=r_E} = 0\). Here \(r = r_E\) corresponds to the extremal black hole with the degenerate horizon. As it is very tedious to solve \(f^{\prime }(r_E)=0\) analytically, so we tabulated the numerical results of remnant size and remnant term \(\mu '\) in Table 4 and Table 5 in various dimensions for different values of charge e with Gauss–Bonnet coupling constant \(\alpha =0.1\) and \(\alpha =0.2\) respectively. The remnant mass \(M_0\) can be calculated very easily by inserting the value of \(\mu '_0\) in Eq. (17). In order to analyze the emitted features of Bardeen–EGB–AdS black hole, we plotted the metric function given in Eq. (16) as a function of radius for extremal Bardeen–EGB–AdS black hole in Fig. 6 for different values of e and \(\alpha \). From Fig. 6, we can say that at the minimal non zero mass \(M_0\), there is a possibility of the extremal configuration with one degenerate event horizon. So, \(M = M_0\) is the condition for having one degenerate event horizon and there will be no event horizon for \(M<M_0\).

6 Conclusion

The EGB gravity is a higher curvature generalization of general relativity which is also considered as quantum corrected gravity model and AdS black holes help us to understand the idea from quantum gravity as well as general relativity. Further, the holography beyond the AdS/CFT continues to exist in true quantum gravity that requires the inclusion of higher order curvature derivative term. Motivated by this, we studied exact static spherical D-dimensional Bardeen–EGB–AdS black holes and discuss their properties. Thus, we obtained an exact black hole in EGB gravity for a static and spherically symmetric D-dimensional AdS spacetime with energy-momentum given by a nonlinear electrodynamics. The solution is characterized by analyzing horizons which could be at the most two.

Later, we compute exact expressions for Hawking temperature, entropy, heat capacity and free energy associated with the black holes, also demonstrate that Hawking-Page transition is achievable. We perform a detailed analysis of the thermodynamical specific heat with focus on the local and global stability. It turns out that heat capacity can be negative or positive depending on the choice of parameters e and \(\alpha \), which further, respectively, tells us that the black hole is unstable or stable.

Indeed, the phase transition of black hole is characterized by the divergence of its specific heat at a critical horizon radius \(r^{C}_+\) which is varying with the spacetime dimension D and parameter \(\alpha \). The black holes are thermodynamically stable with a positive heat capacity for the range \(r_1<r_+<r^{C}_+\) and unstable for \(r_1>r_+> r^{C}_+\) (cf. Fig. 4). We discussed the black hole remnant and tabulated the numerical values of black hole remnant size and mass. The results presented here are the generalization of the previous discussions and in the appropriate limits, go over to AdS-EGB black holes and EGB black holes. The possibility of a further generalization of these results to Lovelock gravity is an interesting problem for future research.