 In the model 

Traditionally, B was considered to be a confounder, because it is associated with X and with Y but is not on a causal path nor is it a descendant of anything on a causal path.Controlling for B causes it to become a confounder.This is known as M-bias.