cytochrome-b5 reductase activity, acting on NAD(P)H
Catalysis of the reaction: 2 Fe(III)-[cytochrome b5] + NAD(P)H = 2 Fe(II)-[cytochrome b5] + NAD(P)+ + H+.
GO:0004128 · molecular function · an activity a gene product carries out, not a process it takes part in