There currently are a variety of options to travel by night train from Rosenheim (Germany) to Linz (Austria), taking between approximately 4 and 5 hours: Namely the EN 50237 and the EN 443. 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.