Several countries are required to get a visa before they travel, even if you are planning a short transit where you cross immigration. Immigration requests that your passport be valid for at least 6 months. The immigration authority will not permit you to land in Malaysia if you do not have a visa before your travel. This includes transit (short stay) visas.