If you take a voltage regulator, and add a resistor on the output, you get a voltage regulator that can source less current than the maximal, it will waste energy continuously, but it can also sink some current. For 0.3V, 50mA you need 5 Ohm. Maximum waste is 1.2V 5 Ohm = 300mW, not too bad.
Or an opamp.