We present a model to study the electrochemical effects of voids in oxide materials under equilibrium conditions and apply this model to uranium dioxide. Based on thermodynamic arguments, we claim that voids in uranium dioxide must contain oxygen gas at a pressure that we determine via a Kelvin equation in terms of temperature, void radius and the oxygen pressure of the outside gas reservoir in equilibrium with the oxide. The oxygen gas within a void gives rise to ionosorption and the formation of a layer of surface-charge on the void surface, which, in turn, induces an influence zone of space charge into the matrix surrounding the void. Since the space charge is carried in part by atomic defects, it is concluded that, as a part of the thermodynamic equilibrium of oxides containing voids, the off-stoichiometry around the void is different from its remote bulk value. As such, in a uranium dioxide solid with a void ensemble, the average off-stoichiometry level in the material differs from that of the void-free counterpart. The model is applied to isolated voids in off-stoichiometric uranium dioxide for a wide range of temperature and disorder state of the oxide.