Is the mean and its standard deviation endogenous??

I would like to know if the mean of a variable is endogenous with its standard deviation?

I have a variable called a expected return (ER), its standard deviation I called the Risk. In the regression ER= a+bRisk.... I got comments that since you recovered the risk from ER, it is a problem of endogeneity.
Can some one explain?