  We compute O(alpha_s^2) QCD corrections to the lepton invariant mass spectrum
in the decay b --> u l nu_l, relevant for the determination of the CKM matrix
element |V_{ub}|. Our method can also be used to evaluate moments of the lepton
energy distribution with an O(alpha_s^2) accuracy. The abelian part of our
result gives the neutrino invariant mass spectrum in the muon decay and, upon
integration, the O(alpha^2) correction to the muon lifetime.
