A child born of a married woman's adultery is a mamzer.
Like many other types of social category, in Judaism the mamzer status is hereditary - a child of a mamzer (whether mother or father) is also a mamzer.