There currently are a variety of options to travel by night train from Munich (Germany) to Linz (Austria), taking between approximately 4 and 6 hours: Namely the EN 443 and the EN 50237. These lines are operated by MÁV-Start.
MÁV-Start, Hungary's national passenger railway, operates domestic and cross-border trains throughout the region.