Well I have got the same problem with a Moto X 2013, with Android 5.1.
I cannot say if it is related to a software update.
It started with some freezing of the Camera App and then the back side Camera disappeared completely (no longer possible to switch and the flash cannot be used anymore).
It...