MAC failure: sent by the phone, not the network. The phone couldn't verify the network's authentication challenge: the vector the HSS generated doesn't match the SIM's key.
In LTE NAS Attach reject, Tracking area update reject, Service reject or Detach request.
Got a trace with EMM cause #20 MAC failure? Drop it in the analyzer: it finds the step that really failed first, which node sent the code and what to ask the other side. Captures, test-system PDFs and vendor exports. 5 free analyses a month, no sign-up.
Analyze a trace free