From Old French malvais, from Late Latin malifātius (“unfortunate”). Compare modern French mauvais.
måva