There currently are a variety of options to travel by night train from Linz (Austria) to Rosenheim (Germany), taking between approximately 4 and 6 hours: Namely the EN 50462 and the EN 442. These lines are operated by MÁV-Start.
MÁV-Start is Hungary's national passenger railway operator, running domestic and international trains connecting Hungary with neighboring countries.