In multiple locations of legacy.rs, there is a possible bypass of device protection on the Attestation ID due to a logic error in the code. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.