score:2
Since Emirates and Air Asia uses separate terminals at KLIA, you will be required to pass through Malaysian Immigration, and Timatic states:
Malaysia (MY)
Passport required. - Passport and/or passport replacing travel documents must be valid at least six months on date of arrival.
So yes, I would recommend you renew your passport first if at all possible.
That said, since you have an immediate onward connection you might be able to argue a) Emirates into them into letting you on board (this would usually entail signing a disclaimer where you agree to all responsibility if you're not allowed in) and b) Malaysia into letting you into the country. But why risk it?
Upvote:-2
Since you are not going through the customs and not leaving the Airport you are considered as in an International zone, then I don't think it would be a problem as long as your final destination doesn't requires it.